Edition



sudo apt-get install git-core
sudo apt-get install maven
$ mvn --version Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.6.0_24, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.2.0-33-generic", arch: "amd64", family: "unix"
$ export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
sudo apt-get install mysql-server-5.5
sudo apt-get install tomcat6
git clone https://git-wip-us.apache.org/repos/asf/cloudstack.git
mvn clean install
mvn -P developer -pl developer -Ddeploydb
export MAVEN_OPTS="-Xmx1024 -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
mvn -pl :cloud-client-ui jetty:run
|
parameter
|
description
|
Value
|
|---|---|---|
|
virtualmachineid
|
The unique ID of the VM to which the NIC is to be added.
|
true
|
|
networkid
|
The unique ID of the network the NIC that you add should apply to.
|
true
|
|
ipaddress
|
The IP address of the VM on the network.
|
false
|
|
parameter
|
description
|
Value
|
|---|---|---|
|
virtualmachineid
|
The unique ID of the VM from which the NIC is to be removed.
|
true
|
|
nicid
|
The unique ID of the NIC that you want to remove.
|
true
|
|
parameter
|
description
|
Value
|
|---|---|---|
|
virtualmachineid
|
The unique ID of the VM for which you want to specify the default NIC.
|
true
|
|
nicid
|
The unique ID of the NIC that you want to set as the default one.
|
true
|
accept_ra to 0 explicitly. The accept_ra parameter accepts Router Advertisements and auto-configure /proc/sys/net/ipv6/conf/interface with received data.
dhclient -6 -D LL <dev>
vi /etc/dhcp/dhclient.conf
send dhcp6.client-id = concat(00:03:00, hardware);
vi /etc/sysconfig/network-scripts/ifcfg-eth0
ifcfg-eth0 file controls the first NIC in a system.
DEVICE=eth0 HWADDR=06:A0:F0:00:00:38 NM_CONTROLLED=no ONBOOT=yes BOOTPROTO=dhcp6 TYPE=Ethernet USERCTL=no PEERDNS=yes IPV6INIT=yes DHCPV6C=yes
vi /etc/sysconfig/network
NETWORKING=yes HOSTNAME=centos62mgmt.lab.vmops.com NETWORKING_IPV6=yes IPV6_AUTOCONF=no
etc/network/interfaces:
iface eth0 inet6 dhcp autoconf 0 accept_ra 1
|
API Commands
|
Description
|
|---|---|
|
createNetworkOffering
|
The following request parameters have been added:
|
|
listNetworkOfferings
listNetworks
|
The following request parameters have been added:
|
|
createVlanIpRange
|
The following request parameters have been added:
|
|
deployVirtualMachine
|
The following parameter has been added: ip6Address.
The following parameter is updated to accept the IPv6 address: iptonetworklist.
|
|
CreateZoneCmd
|
The following parameter have been added: ip6dns1, ip6dns2.
|
|
listRouters
listVirtualMachines
|
For nic responses, the following fields have been added.
|
|
listVlanIpRanges
|
For nic responses, the following fields have been added.
|
|
listRouters
listZones
|
For DomainRouter and DataCenter response, the following fields have been added.
|
|
addF5LoadBalancer
configureNetscalerLoadBalancer
addNetscalerLoadBalancer
listF5LoadBalancers
configureF5LoadBalancer
listNetscalerLoadBalancers
|
The following response parameter is removed: inline.
|
|
listFirewallRules
createFirewallRule
|
The following request parameter is added: traffictype (optional).
|
|
listUsageRecords
|
The following response parameter is added: virtualsize.
|
|
deleteIso
|
The following request parameter is added: forced (optional).
|
|
createStoragePool
|
The following request parameters are made mandatory:
|
|
createAccount
|
The following new request parameters are added: accountid, userid
|
|
createUser
|
The following new request parameter is added: userid
|
|
createDomain
|
The following new request parameter is added: domainid
|
|
listZones
|
The following request parameters is added: securitygroupenabled
|
|
API Commands
|
Description
|
|---|---|
|
copyTemplate
prepareTemplate
registerTemplate
updateTemplate
createProject
activateProject
suspendProject
updateProject
listProjectAccounts
createVolume
migrateVolume
attachVolume
detachVolume
uploadVolume
createSecurityGroup
registerIso
copyIso
updateIso
createIpForwardingRule
listIpForwardingRules
createLoadBalancerRule
updateLoadBalancerRule
createSnapshot
|
The commands in this list have a single new response parameter, and no other changes.
New response parameter: tags(*)
Note
Many other commands also have the new tags(*) parameter in addition to other changes; those commands are listed separately.
|
|
rebootVirtualMachine
attachIso
detachIso
listLoadBalancerRuleInstances
resetPasswordForVirtualMachine
changeServiceForVirtualMachine
recoverVirtualMachine
startVirtualMachine
migrateVirtualMachine
deployVirtualMachine
assignVirtualMachine
updateVirtualMachine
restoreVirtualMachine
stopVirtualMachine
destroyVirtualMachine
|
The commands in this list have two new response parameters, and no other changes.
New response parameters: keypair, tags(*)
|
|
listSecurityGroups
listFirewallRules
listPortForwardingRules
listSnapshots
listIsos
listProjects
listTemplates
listLoadBalancerRules
|
The commands in this list have the following new parameters, and no other changes.
New request parameter: tags (optional)
New response parameter: tags(*)
|
|
listF5LoadBalancerNetworks
listNetscalerLoadBalancerNetworks
listSrxFirewallNetworks
updateNetwork
|
The commands in this list have three new response parameters, and no other changes.
New response parameters: canusefordeploy, vpcid, tags(*)
|
|
createZone
updateZone
|
The commands in this list have the following new parameters, and no other changes.
New request parameter: localstorageenabled (optional)
New response parameter: localstorageenabled
|
|
listZones
|
New response parameter: localstorageenabled
|
|
rebootRouter
changeServiceForRouter
startRouter
destroyRouter
stopRouter
|
The commands in this list have two new response parameters, and no other changes.
New response parameters: vpcid, nic(*)
|
|
updateAccount
disableAccount
listAccounts
markDefaultZoneForAccount
enableAccount
|
The commands in this list have three new response parameters, and no other changes.
New response parameters: vpcavailable, vpclimit, vpctotal
|
|
listRouters
|
New request parameters: forvpc (optional), vpcid (optional)
New response parameters: vpcid, nic(*)
|
|
listNetworkOfferings
|
New request parameters: forvpc (optional)
New response parameters: forvpc
|
|
listVolumes
|
New request parameters: details (optional), tags (optional)
New response parameters: tags(*)
|
|
addTrafficMonitor
|
New request parameters: excludezones (optional), includezones (optional)
|
|
createNetwork
|
New request parameters: vpcid (optional)
New response parameters: canusefordeploy, vpcid, tags(*)
|
|
listPublicIpAddresses
|
New request parameters: tags (optional), vpcid (optional)
New response parameters: vpcid, tags(*)
|
|
listNetworks
|
New request parameters: canusefordeploy (optional), forvpc (optional), tags (optional), vpcid (optional)
New response parameters: canusefordeploy, vpcid, tags(*)
|
|
restartNetwork
|
New response parameters: vpcid, tags(*)
|
|
enableStaticNat
|
New request parameter: networkid (optional)
|
|
createDiskOffering
|
New request parameter: storagetype (optional)
New response parameter: storagetype
|
|
listDiskOfferings
|
New response parameter: storagetype
|
|
updateDiskOffering
|
New response parameter: storagetype
|
|
createFirewallRule
|
Changed request parameters: ipaddressid (old version - optional, new version - required)
New response parameter: tags(*)
|
|
listVirtualMachines
|
New request parameters: isoid (optional), tags (optional), templateid (optional)
New response parameters: keypair, tags(*)
|
|
updateStorageNetworkIpRange
|
New response parameters: id, endip, gateway, netmask, networkid, podid, startip, vlan, zoneid
|
command=createTags &resourceIds=1,10,12 &resourceType=userVm &tags[0].key=region &tags[0].value=canada &tags[1].key=city &tags[1].value=Toronto
command=deleteTags &resourceIds=1,12 &resourceType=Snapshot &tags[0].key=city
|
listTemplates Flag
|
Description
|
|---|---|
|
featured
|
Returns templates that have been marked as featured and public.
|
|
self
|
Returns templates that have been registered or created by the calling user.
|
|
selfexecutable
|
Same as self, but only returns templates that are ready to be deployed with.
|
|
sharedexecutable
|
Ready templates that have been granted to the calling user by another user.
|
|
executable
|
Templates that are owned by the calling user, or public templates, that can be used to deploy a new VM.
|
|
community
|
Returns templates that have been marked as public but not featured.
|
|
all
|
Returns all templates (only usable by admins).
|
|
assignVirtualMachine (Move a user VM to another user under same domain.)
|
restoreVirtualMachine (Restore a VM to original template or specific snapshot)
|
createLBStickinessPolicy (Creates a Load Balancer stickiness policy )
|
|
deleteLBStickinessPolicy (Deletes a LB stickiness policy.)
|
listLBStickinessPolicies (Lists LBStickiness policies.)
|
ldapConfig (Configure the LDAP context for this site.)
|
|
addSwift (Adds Swift.)
|
listSwifts (List Swift.)
|
migrateVolume (Migrate volume)
|
|
updateStoragePool (Updates a storage pool.)
|
authorizeSecurityGroupEgress (Authorizes a particular egress rule for this security group)
|
revokeSecurityGroupEgress (Deletes a particular egress rule from this security group)
|
|
createNetworkOffering (Creates a network offering.)
|
deleteNetworkOffering (Deletes a network offering.)
|
createProject (Creates a project)
|
|
deleteProject (Deletes a project)
|
updateProject (Updates a project)
|
activateProject (Activates a project)
|
|
suspendProject (Suspends a project)
|
listProjects (Lists projects and provides detailed information for listed projects)
|
addAccountToProject (Adds account to a project)
|
|
deleteAccountFromProject (Deletes account from the project)
|
listProjectAccounts (Lists project's accounts)
|
listProjectInvitations (Lists an account's invitations to join projects)
|
|
updateProjectInvitation (Accepts or declines project invitation)
|
deleteProjectInvitation (Deletes a project invitation)
|
updateHypervisorCapabilities (Updates a hypervisor capabilities.)
|
|
listHypervisorCapabilities (Lists all hypervisor capabilities.)
|
createPhysicalNetwork (Creates a physical network)
|
deletePhysicalNetwork (Deletes a Physical Network.)
|
|
listPhysicalNetworks (Lists physical networks)
|
updatePhysicalNetwork (Updates a physical network)
|
listSupportedNetworkServices (Lists all network services provided by CloudStack or for the given Provider.)
|
|
addNetworkServiceProvider (Adds a network serviceProvider to a physical network)
|
deleteNetworkServiceProvider (Deletes a Network Service Provider.)
|
listNetworkServiceProviders (Lists network serviceproviders for a given physical network.)
|
|
updateNetworkServiceProvider (Updates a network serviceProvider of a physical network)
|
addTrafficType (Adds traffic type to a physical network)
|
deleteTrafficType (Deletes traffic type of a physical network)
|
|
listTrafficTypes (Lists traffic types of a given physical network.)
|
updateTrafficType (Updates traffic type of a physical network)
|
listTrafficTypeImplementors (Lists implementors of implementor of a network traffic type or implementors of all network traffic types)
|
|
createStorageNetworkIpRange (Creates a Storage network IP range.)
|
deleteStorageNetworkIpRange (Deletes a storage network IP Range.)
|
listStorageNetworkIpRange (List a storage network IP range.)
|
|
updateStorageNetworkIpRange (Update a Storage network IP range, only allowed when no IPs in this range have been allocated.)
|
listUsageTypes (List Usage Types)
|
addF5LoadBalancer (Adds a F5 BigIP load balancer device)
|
|
configureF5LoadBalancer (configures a F5 load balancer device)
|
deleteF5LoadBalancer ( delete a F5 load balancer device)
|
listF5LoadBalancers (lists F5 load balancer devices)
|
|
listF5LoadBalancerNetworks (lists network that are using a F5 load balancer device)
|
addSrxFirewall (Adds a SRX firewall device)
|
deleteSrxFirewall ( delete a SRX firewall device)
|
|
listSrxFirewalls (lists SRX firewall devices in a physical network)
|
listSrxFirewallNetworks (lists network that are using SRX firewall device)
|
addNetscalerLoadBalancer (Adds a netscaler load balancer device)
|
|
deleteNetscalerLoadBalancer ( delete a netscaler load balancer device)
|
configureNetscalerLoadBalancer (configures a netscaler load balancer device)
|
listNetscalerLoadBalancers (lists netscaler load balancer devices)
|
|
listNetscalerLoadBalancerNetworks (lists network that are using a netscaler load balancer device)
|
createVirtualRouterElement (Create a virtual router element.)
|
configureVirtualRouterElement (Configures a virtual router element.)
|
|
listVirtualRouterElements (Lists all available virtual router elements.)
|
|
|
|
4250 : "com.cloud.utils.exception.CloudRuntimeException"
|
4255 : "com.cloud.utils.exception.ExceptionUtil"
|
4260 : "com.cloud.utils.exception.ExecutionException"
|
|
4265 : "com.cloud.utils.exception.HypervisorVersionChangedException"
|
4270 : "com.cloud.utils.exception.RuntimeCloudException"
|
4275 : "com.cloud.exception.CloudException"
|
|
4280 : "com.cloud.exception.AccountLimitException"
|
4285 : "com.cloud.exception.AgentUnavailableException"
|
4290 : "com.cloud.exception.CloudAuthenticationException"
|
|
4295 : "com.cloud.exception.CloudExecutionException"
|
4300 : "com.cloud.exception.ConcurrentOperationException"
|
4305 : "com.cloud.exception.ConflictingNetworkSettingsException"
|
|
4310 : "com.cloud.exception.DiscoveredWithErrorException"
|
4315 : "com.cloud.exception.HAStateException"
|
4320 : "com.cloud.exception.InsufficientAddressCapacityException"
|
|
4325 : "com.cloud.exception.InsufficientCapacityException"
|
4330 : "com.cloud.exception.InsufficientNetworkCapacityException"
|
4335 : "com.cloud.exception.InsufficientServerCapacityException"
|
|
4340 : "com.cloud.exception.InsufficientStorageCapacityException"
|
4345 : "com.cloud.exception.InternalErrorException"
|
4350 : "com.cloud.exception.InvalidParameterValueException"
|
|
4355 : "com.cloud.exception.ManagementServerException"
|
4360 : "com.cloud.exception.NetworkRuleConflictException"
|
4365 : "com.cloud.exception.PermissionDeniedException"
|
|
4370 : "com.cloud.exception.ResourceAllocationException"
|
4375 : "com.cloud.exception.ResourceInUseException"
|
4380 : "com.cloud.exception.ResourceUnavailableException"
|
|
4385 : "com.cloud.exception.StorageUnavailableException"
|
4390 : "com.cloud.exception.UnsupportedServiceException"
|
4395 : "com.cloud.exception.VirtualMachineMigrationException"
|
|
4400 : "com.cloud.exception.AccountLimitException"
|
4405 : "com.cloud.exception.AgentUnavailableException"
|
4410 : "com.cloud.exception.CloudAuthenticationException"
|
|
4415 : "com.cloud.exception.CloudException"
|
4420 : "com.cloud.exception.CloudExecutionException"
|
4425 : "com.cloud.exception.ConcurrentOperationException"
|
|
4430 : "com.cloud.exception.ConflictingNetworkSettingsException"
|
4435 : "com.cloud.exception.ConnectionException"
|
4440 : "com.cloud.exception.DiscoveredWithErrorException"
|
|
4445 : "com.cloud.exception.DiscoveryException"
|
4450 : "com.cloud.exception.HAStateException"
|
4455 : "com.cloud.exception.InsufficientAddressCapacityException"
|
|
4460 : "com.cloud.exception.InsufficientCapacityException"
|
4465 : "com.cloud.exception.InsufficientNetworkCapacityException"
|
4470 : "com.cloud.exception.InsufficientServerCapacityException"
|
|
4475 : "com.cloud.exception.InsufficientStorageCapacityException"
|
4480 : "com.cloud.exception.InsufficientVirtualNetworkCapcityException"
|
4485 : "com.cloud.exception.InternalErrorException"
|
|
4490 : "com.cloud.exception.InvalidParameterValueException"
|
4495 : "com.cloud.exception.ManagementServerException"
|
4500 : "com.cloud.exception.NetworkRuleConflictException"
|
|
4505 : "com.cloud.exception.PermissionDeniedException"
|
4510 : "com.cloud.exception.ResourceAllocationException"
|
4515 : "com.cloud.exception.ResourceInUseException"
|
|
4520 : "com.cloud.exception.ResourceUnavailableException"
|
4525 : "com.cloud.exception.StorageUnavailableException"
|
4530 : "com.cloud.exception.UnsupportedServiceException"
|
|
4535 : "com.cloud.exception.VirtualMachineMigrationException"
|
9999 : "org.apache.cloudstack.api.ServerApiException"
|
|
http://localhost:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=2&zoneId=4&apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXq-jB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ&signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D
1. http://localhost:8080/client/api 2. ?command=deployVirtualMachine 3. &serviceOfferingId=1 4. &diskOfferingId=1 5. &templateId=2 6. &zoneId=4 7. &apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXqjB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ 8. &signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D
http://http://localhost:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=2&zoneId=4&apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXq-jB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ&signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D
http://localhost:8080
/client/api?
command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=2&zoneId=4&apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXq-jB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ
apikey=mivr6x7u6bn_sdahobpjnejpgest35exq-jb8cg20yi3yaxxcgpyuairmfi_ejtvwz0nukkjbpmy3y2bcikwfq&command=deployvirtualmachine&diskofferingid=1&serviceofferingid=1&templateid=2&zoneid=4
http://localhost:8080/client/api?command=deployVirtualMachine&serviceOfferingId=1&diskOfferingId=1&templateId=2&zoneId=4&apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXq-jB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ&signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D
$python Python 2.7.3 (default, Nov 17 2012, 19:54:34) [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import urllib2 >>> import urllib >>> import hashlib >>> import hmac >>> import base64
>>> baseurl='http://localhost:8080/client/api?'
>>> request={}
>>> request['command']='listUsers'
>>> request['response']='json'
>>> request['apikey']='plgWJfZK4gyS3mOMTVmjUVg-X-jlWlnfaUJ9GAbBbf9EdM-kAYMmAiLqzzq1ElZLYq_u38zCm0bewzGUdP66mg'
>>> secretkey='VDaACYb0LV9eNjTetIOElcVQkvJck_J_QljX_FcHRj87ZKiy0z0ty0ZsYBkoXkY9b7eq1EhwJaw7FF3akA3KBQ'
>>> request_str='&'.join(['='.join([k,urllib.quote_plus(request[k])]) for k in request.keys()]) >>> request_str 'apikey=plgWJfZK4gyS3mOMTVmjUVg-X-jlWlnfaUJ9GAbBbf9EdM-kAYMmAiLqzzq1ElZLYq_u38zCm0bewzGUdP66mg&command=listUsers&response=json'
>>> sig_str='&'.join(['='.join([k.lower(),urllib.quote_plus(request[k].lower().replace('+','%20'))])for k in sorted(request.iterkeys())])
>>> sig_str
'apikey=plgwjfzk4gys3momtvmjuvg-x-jlwlnfauj9gabbbf9edm-kaymmailqzzq1elzlyq_u38zcm0bewzgudp66mg&command=listusers&response=json'
>>> sig=hmac.new(secretkey,sig_str,hashlib.sha1)
>>> sig
<hmac.HMAC instance at 0x10d91d680>
>>> sig=hmac.new(secretkey,sig_str,hashlib.sha1).digest()
>>> sig
'M:]\x0e\xaf\xfb\x8f\xf2y\xf1p\x91\x1e\x89\x8a\xa1\x05\xc4A\xdb'
>>> sig=base64.encodestring(hmac.new(secretkey,sig_str,hashlib.sha1).digest())
>>> sig
'TTpdDq/7j/J58XCRHomKoQXEQds=\n'
>>> sig=base64.encodestring(hmac.new(secretkey,sig_str,hashlib.sha1).digest()).strip()
>>> sig
'TTpdDq/7j/J58XCRHomKoQXEQds='
>>> sig=urllib.quote_plus(base64.encodestring(hmac.new(secretkey,sig_str,hashlib.sha1).digest()).strip())
>>> req=baseurl+request_str+'&signature='+sig
>>> req
'http://localhost:8080/client/api?apikey=plgWJfZK4gyS3mOMTVmjUVg-X-jlWlnfaUJ9GAbBbf9EdM-kAYMmAiLqzzq1ElZLYq_u38zCm0bewzGUdP66mg&command=listUsers&response=json&signature=TTpdDq%2F7j%2FJ58XCRHomKoQXEQds%3D'
>>> res=urllib2.urlopen(req)
>>> res.read()
'{ "listusersresponse" : { "count":3 ,"user" : [ {"id":"7ed6d5da-93b2-4545-a502-23d20b48ef2a","username":"admin","firstname":"admin","lastname":"cloud","created":"2012-07-05T12:18:27-0700","state":"enabled","account":"admin","accounttype":1,"domainid":"8a111e58-e155-4482-93ce-84efff3c7c77","domain":"ROOT","apikey":"plgWJfZK4gyS3mOMTVmjUVg-X-jlWlnfaUJ9GAbBbf9EdM-kAYMmAiLqzzq1ElZLYq_u38zCm0bewzGUdP66mg","secretkey":"VDaACYb0LV9eNjTetIOElcVQkvJck_J_QljX_FcHRj87ZKiy0z0ty0ZsYBkoXkY9b7eq1EhwJaw7FF3akA3KBQ","accountid":"7548ac03-af1d-4c1c-9064-2f3e2c0eda0d"}, {"id":"1fea6418-5576-4989-a21e-4790787bbee3","username":"runseb","firstname":"foobar","lastname":"goa","email":"[email protected]","created":"2013-04-10T16:52:06-0700","state":"enabled","account":"admin","accounttype":1,"domainid":"8a111e58-e155-4482-93ce-84efff3c7c77","domain":"ROOT","apikey":"Xhsb3MewjJQaXXMszRcLvQI9_NPy_UcbDj1QXikkVbDC9MDSPwWdtZ1bUY1H7JBEYTtDDLY3yuchCeW778GkBA","secretkey":"gIsgmi8C5YwxMHjX5o51pSe0kqs6JnKriw0jJBLceY5bgnfzKjL4aM6ctJX-i1ddQIHJLbLJDK9MRzsKk6xZ_w","accountid":"7548ac03-af1d-4c1c-9064-2f3e2c0eda0d"}, {"id":"52f65396-183c-4473-883f-a37e7bb93967","username":"toto","firstname":"john","lastname":"smith","email":"[email protected]","created":"2013-04-23T04:27:22-0700","state":"enabled","account":"admin","accounttype":1,"domainid":"8a111e58-e155-4482-93ce-84efff3c7c77","domain":"ROOT","apikey":"THaA6fFWS_OmvU8od201omxFC8yKNL_Hc5ZCS77LFCJsRzSx48JyZucbUul6XYbEg-ZyXMl_wuEpECzK-wKnow","secretkey":"O5ywpqJorAsEBKR_5jEvrtGHfWL1Y_j1E4Z_iCr8OKCYcsPIOdVcfzjJQ8YqK0a5EzSpoRrjOFiLsG0hQrYnDA","accountid":"7548ac03-af1d-4c1c-9064-2f3e2c0eda0d"} ] } }'
expires=2011-10-10T12:00:00+0530
http://<IPAddress>:8080/client/api?command=listZones&signatureVersion=3&expires=2011-10-10T12:00:00+0530&apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXq-jB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ&signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D
<listipaddressesresponse>
<allocatedipaddress>
<ipaddress>192.168.10.141</ipaddress>
<allocated>2009-09-18T13:16:10-0700</allocated>
<zoneid>4</zoneid>
<zonename>WC</zonename>
<issourcenat>true</issourcenat>
</allocatedipaddress>
</listipaddressesresponse>
{ "listipaddressesresponse" :
{ "allocatedipaddress" :
[
{
"ipaddress" : "192.168.10.141",
"allocated" : "2009-09-18T13:16:10-0700",
"zoneid" : "4",
"zonename" : "WC",
"issourcenat" : "true"
}
]
}
}
command=deployVirtualMachine&zoneId=1&serviceOfferingId=1&diskOfferingId=1&templateId=1
<deployvirtualmachineresponse>
<jobid>1</jobid>
<id>100</id>
</deployvirtualmachineresponse>
command=queryAsyncJobResult&jobId=1
<queryasyncjobresult>
<jobid>1</jobid>
<jobstatus>0</jobstatus>
<jobprocstatus>1</jobprocstatus>
</queryasyncjobresult>
<queryasyncjobresultresponse cloud-stack-version="3.0.1.6">
<jobid>1</jobid>
<jobstatus>1</jobstatus>
<jobprocstatus>0</jobprocstatus>
<jobresultcode>0</jobresultcode>
<jobresulttype>object</jobresulttype>
<jobresult>
<virtualmachine>
<id>450</id>
<name>i-2-450-VM</name>
<displayname>i-2-450-VM</displayname>
<account>admin</account>
<domainid>1</domainid>
<domain>ROOT</domain>
<created>2011-03-10T18:20:25-0800</created>
<state>Running</state>
<haenable>false</haenable>
<zoneid>1</zoneid>
<zonename>San Jose 1</zonename>
<hostid>2</hostid>
<hostname>905-13.sjc.lab.vmops.com</hostname>
<templateid>1</templateid>
<templatename>CentOS 5.3 64bit LAMP</templatename>
<templatedisplaytext>CentOS 5.3 64bit LAMP</templatedisplaytext>
<passwordenabled>false</passwordenabled>
<serviceofferingid>1</serviceofferingid>
<serviceofferingname>Small Instance</serviceofferingname>
<cpunumber>1</cpunumber>
<cpuspeed>500</cpuspeed>
<memory>512</memory>
<guestosid>12</guestosid>
<rootdeviceid>0</rootdeviceid>
<rootdevicetype>NetworkFilesystem</rootdevicetype>
<nic>
<id>561</id>
<networkid>205</networkid>
<netmask>255.255.255.0</netmask>
<gateway>10.1.1.1</gateway>
<ipaddress>10.1.1.225</ipaddress>
<isolationuri>vlan://295</isolationuri>
<broadcasturi>vlan://295</broadcasturi>
<traffictype>Guest</traffictype>
<type>Virtual</type>
<isdefault>true</isdefault>
</nic>
<hypervisor>XenServer</hypervisor>
</virtualmachine>
</jobresult>
</queryasyncjobresultresponse>
<queryasyncjobresult>
<jobid>1</jobid>
<jobstatus>2</jobstatus>
<jobprocstatus>0</jobprocstatus>
<jobresultcode>551</jobresultcode>
<jobresulttype>text</jobresulttype>
<jobresult>Unable to deploy virtual machine id = 100 due to not enough capacity</jobresult>
</queryasyncjobresult>
| Type ID | Type Name | Description |
|---|---|---|
| 1 | RUNNING_VM | Tracks the total running time of a VM per usage record period. If the VM is upgraded during the usage period, you will get a separate Usage Record for the new upgraded VM. |
|
2
|
ALLOCATED_VM
|
Tracks the total time the VM has been created to the time when it has been destroyed. This usage type is also useful in determining usage for specific templates such as Windows-based templates.
|
|
3
|
IP_ADDRESS
|
Tracks the public IP address owned by the account.
|
|
4
|
NETWORK_BYTES_SENT
|
Tracks the total number of bytes sent by all the VMs for an account. Cloud.com does not currently track network traffic per VM.
|
|
5
|
NETWORK_BYTES_RECEIVED
|
Tracks the total number of bytes received by all the VMs for an account. Cloud.com does not currently track network traffic per VM.
|
|
6
|
VOLUME
|
Tracks the total time a disk volume has been created to the time when it has been destroyed.
|
|
7
|
TEMPLATE
|
Tracks the total time a template (either created from a snapshot or uploaded to the cloud) has been created to the time it has been destroyed. The size of the template is also returned.
|
|
8
|
ISO
|
Tracks the total time an ISO has been uploaded to the time it has been removed from the cloud. The size of the ISO is also returned.
|
|
9
|
SNAPSHOT
|
Tracks the total time from when a snapshot has been created to the time it have been destroyed.
|
|
11
|
LOAD_BALANCER_POLICY
|
Tracks the total time a load balancer policy has been created to the time it has been removed. Cloud.com does not track whether a VM has been assigned to a policy.
|
|
12
|
PORT_FORWARDING_RULE
|
Tracks the time from when a port forwarding rule was created until the time it was removed.
|
|
13
|
NETWORK_OFFERING
|
The time from when a network offering was assigned to a VM until it is removed.
|
|
14
|
VPN_USERS
|
The time from when a VPN user is created until it is removed.
|
<listusagerecordsresponse>
<count>1816</count>
<usagerecord>
<account>user5</account>
<accountid>10004</accountid>
<domainid>1</domainid>
<zoneid>1</zoneid>
<description>i-3-4-WC running time (ServiceOffering: 1) (Template: 3)</description>
<usage>2.95288 Hrs</usage>
<usagetype>1</usagetype>
<rawusage>2.95288</rawusage>
<virtualmachineid>4</virtualmachineid>
<name>i-3-4-WC</name>
<offeringid>1</offeringid>
<templateid>3</templateid>
<usageid>245554</usageid>
<type>XenServer</type>
<startdate>2009-09-15T00:00:00-0700</startdate>
<enddate>2009-09-18T16:14:26-0700</enddate>
</usagerecord>
… (1,815 more usage records)
</listusagerecordsresponse>
|
Parameter Name
|
Definition
|
|---|---|
|
max.account.public.ips
|
Number of public IP addresses that can be owned by an account
|
|
max.account.snapshots
|
Number of snapshots that can exist for an account
|
|
max.account.templates
|
Number of templates that can exist for an account
|
|
max.account.user.vms
|
Number of virtual machine instances that can exist for an account
|
|
max.account.volumes
|
Number of disk volumes that can exist for an account
|
|
max.template.iso.size
|
Maximum size for a downloaded template or ISO in GB
|
|
max.volume.size.gb
|
Maximum size for a volume in GB
|
|
network.throttling.rate
|
Default data transfer rate in megabits per second allowed per user (supported on XenServer)
|
|
snapshot.max.hourly
|
Maximum recurring hourly snapshots to be retained for a volume. If the limit is reached, early snapshots from the start of the hour are deleted so that newer ones can be saved. This limit does not apply to manual snapshots. If set to 0, recurring hourly snapshots can not be scheduled
|
|
snapshot.max.daily
|
Maximum recurring daily snapshots to be retained for a volume. If the limit is reached, snapshots from the start of the day are deleted so that newer ones can be saved. This limit does not apply to manual snapshots. If set to 0, recurring daily snapshots can not be scheduled
|
|
snapshot.max.weekly
|
Maximum recurring weekly snapshots to be retained for a volume. If the limit is reached, snapshots from the beginning of the week are deleted so that newer ones can be saved. This limit does not apply to manual snapshots. If set to 0, recurring weekly snapshots can not be scheduled
|
|
snapshot.max.monthly
|
Maximum recurring monthly snapshots to be retained for a volume. If the limit is reached, snapshots from the beginning of the month are deleted so that newer ones can be saved. This limit does not apply to manual snapshots. If set to 0, recurring monthly snapshots can not be scheduled.
|
yum install publican publican-doc
apt-get install publican publican-doc
sudo cp -R publican-cloudstack /usr/share/publican/Common_Content/cloudstack
publican-adminguide.cfg
publican-devguide.cfg
publican-installation.cfg
publican-plugin-niciranvp.cfg
publican-release-notes.cfg
publican build --config=publican-devguide.cfg --formats=pdf --langs=en-US
xml_lang: en-US
type: Book
docname: Developers_Guide
brand: cloudstack
chunk_first: 1
chunk_section_depth: 1
<xi:include href="concepts.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="building-with-maven.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="developer-introduction.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="whats-new.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="api-calls.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="working-with-usage-data.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="working-with-documentation.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="tools.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="event-types.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="alerts.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="time-zones.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<chapter id="working-with-documentation">
<title>Preparing and Building CloudStack Documentation</title>
<para>This chapter describes how to install publican, how to write new documentation and build a guide as well as how to build a translated version of the documentation using transifex</para>
<xi:include href="installing-publican.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="building-documentation.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="writing-new-documentation.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="building-translation.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
</chapter>
<section id="building-documentation">
<title>Building CloudStack Documentation</title>
<para>To build a specific guide, go to the source tree of the documentation in /docs and identify the guide you want to build.</para>
<para>Currently there are four guides plus the release notes, all defined in publican configuration files:</para>
<programlisting>
publican-adminguide.cfg
publican-devguide.cfg
publican-installation.cfg
publican-plugin-niciranvp.cfg
publican-release-notes.cfg
</programlisting>
<para>To build the Developer guide for example, do the following:</para>
<programlisting>publican build --config=publican-devguide.cfg --formats=pdf --langs=en-US</programlisting>
<para>A pdf file will be created in tmp/en-US/pdf, you may choose to build the guide in a different format like html. In that case just replace the format value.</para>
</section>
publican update_pot --config=publican-devguide.cfg
yum install transifex-client
easy_install transifex-client
tx push -s
tx pull -a
publican build --config=publican-devguide.cfg --formats=html --langs=fr-FR


mvn -P developer -pl :cloud-apidoc
mvn -P developer -pl :cloud-marvin
sudo python ./setup.py install
$ python Python 2.7.3 (default, Nov 17 2012, 19:54:34) [GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import marvin >>> from marvin.cloudstackAPI import * >>>
pip install tools/marvin/dist/Marvin-0.1.0.tar.gz
easy_install tools/marvin/dist/Marvin-0.1.0.tar.gz
$ git clone https://git-wip-us.apache.org/repos/asf/cloudstack.git # (optional if using a release download)
$ mvn clean install -P developer
$ cd tools/cli # cloudmonkey-x.x.x.tar.gz will be built in dist
$ python setup.py build
$ python setup.py install
pip install cloudmonkey
$ cat ~/.cloudmonkey/config [core] log_file = /Users/sebastiengoasguen/.cloudmonkey/log asyncblock = true paramcompletion = false history_file = /Users/sebastiengoasguen/.cloudmonkey/history [ui] color = true prompt = > tabularize = false [user] secretkey =VDaACYb0LV9eNjTetIOElcVQkvJck_J_QljX_FcHRj87ZKiy0z0ty0ZsYBkoXkY9b7eq1EhwJaw7FF3akA3KBQ apikey = plgWJfZK4gyS3mOMTVmjUVg-X-jlWlnfaUJ9GAbBbf9EdMkAYMmAiLqzzq1ElZLYq_u38zCm0bewzGUdP66mg [server] path = /client/api host = localhost protocol = http port = 8080 timeout = 3600
$ cloudmonkey ☁ Apache CloudStack cloudmonkey 4.1.0-snapshot. Type help or ? to list commands. > set prompt myprompt> myprompt> set host localhost myprompt> set port 8080 myprompt> set apikey <your api key> myprompt> set secretkey <your secret key>
> sync 324 APIs discovered and cached
> set tabularize true > list users filter=id,domain,account count = 1 user: +--------------------------------------+--------+---------+ | id | domain | account | +--------------------------------------+--------+---------+ | 7ed6d5da-93b2-4545-a502-23d20b48ef2a | ROOT | admin | +--------------------------------------+--------+---------+
cloudmonkey> EOF assign cancel create detach extract ldap prepare reconnect restart shell update activate associate change delete disable generate list query register restore start upload add attach configure deploy enable get mark quit remove revoke stop api authorize copy destroy exit help migrate reboot reset set suspend cloudmonkey>create account diskoffering loadbalancerrule portforwardingrule snapshot tags vpc autoscalepolicy domain network privategateway snapshotpolicy template vpcoffering autoscalevmgroup firewallrule networkacl project sshkeypair user vpnconnection autoscalevmprofile instancegroup networkoffering remoteaccessvpn staticroute virtualrouterelement vpncustomergateway condition ipforwardingrule physicalnetwork securitygroup storagenetworkiprange vlaniprange vpngateway counter lbstickinesspolicy pod serviceoffering storagepool volume zone
cloudmonkey>create network account= domainid= isAsync= networkdomain= projectid= vlan= acltype= endip= name= networkofferingid= startip= vpcid= displaytext= gateway= netmask= physicalnetworkid= subdomainaccess= zoneid=
cloudmonkey>create network -h Creates a network Required args: displaytext name networkofferingid zoneid Args: account acltype displaytext domainid endip gateway isAsync name netmask networkdomain networkofferingid physicalnetworkid projectid startip subdomainaccess vlan vpcid zoneid cloudmonkey>create network -help Creates a network Required args: displaytext name networkofferingid zoneid Args: account acltype displaytext domainid endip gateway isAsync name netmask networkdomain networkofferingid physicalnetworkid projectid startip subdomainaccess vlan vpcid zoneid cloudmonkey>create network --help Creates a network Required args: displaytext name networkofferingid zoneid Args: account acltype displaytext domainid endip gateway isAsync name netmask networkdomain networkofferingid physicalnetworkid projectid startip subdomainaccess vlan vpcid zoneid cloudmonkey>
cloudmonkey>deploy virtualmachine -h Creates and automatically starts a virtual machine based on a service offering, disk offering, and template. Required args: serviceofferingid templateid zoneid Args: account diskofferingid displayname domainid group hostid hypervisor ipaddress iptonetworklist isAsync keyboard keypair name networkids projectid securitygroupids securitygroupnames serviceofferingid size startvm templateid userdata zoneid
cloudmonkey>list templates templatefilter=all count = 2 template: ======== domain = ROOT domainid = 8a111e58-e155-4482-93ce-84efff3c7c77 zoneid = e1bfdfaf-3d9b-43d4-9aea-2c9f173a1ae7 displaytext = SystemVM Template (XenServer) ostypeid = 849d7d0a-9fbe-452a-85aa-70e0a0cbc688 passwordenabled = False id = 6d360f79-4de9-468c-82f8-a348135d298e size = 2101252608 isready = True templatetype = SYSTEM zonename = devcloud ...<snipped>
cloudmonkey>list serviceofferings | grep id id = ef2537ad-c70f-11e1-821b-0800277e749c id = c66c2557-12a7-4b32-94f4-48837da3fa84 id = 3d8b82e5-d8e7-48d5-a554-cf853111bc50
cloudmonkey>deploy virtualmachine templateid=13ccff62-132b-4caf-b456-e8ef20cbff0e zoneid=e1bfdfaf-3d9b-43d4-9aea-2c9f173a1ae7 serviceofferingid=ef2537ad-c70f-11e1-821b-0800277e749c jobprocstatus = 0 created = 2013-03-05T13:04:51-0800 cmd = com.cloud.api.commands.DeployVMCmd userid = 7ed6d5da-93b2-4545-a502-23d20b48ef2a jobstatus = 1 jobid = c441d894-e116-402d-aa36-fdb45adb16b7 jobresultcode = 0 jobresulttype = object jobresult: ========= virtualmachine: ============== domain = ROOT domainid = 8a111e58-e155-4482-93ce-84efff3c7c77 haenable = False templatename = tiny Linux ...<snipped>
cloudmonkey>stop virtualmachine id=7efe0377-4102-4193-bff8-c706909cc2d2
$cloudmonkey list users
pip install apache-libcloud
pip install apache-libcloud
Downloading/unpacking apache-libcloud
Downloading apache-libcloud-0.12.4.tar.bz2 (376kB): 376kB downloaded
Running setup.py egg_info for package apache-libcloud
Installing collected packages: apache-libcloud
Running setup.py install for apache-libcloud
Successfully installed apache-libcloud
Cleaning up...
>>> from libcloud.compute.types import Provider >>> from libcloud.compute.providers import get_driver >>> Driver = get_driver(Provider.CLOUDSTACK) >>> apikey='plgWJfZK4gyS3mOMTVmjUVg-X-jlWlnfaUJ9GAbBbf9EdM-kAYMmAiLqzzq1ElZLYq_u38zCm0bewzGUdP66mg' >>> secretkey='VDaACYb0LV9eNjTetIOElcVQkvJck_J_QljX_FcHRj87ZKiy0z0ty0ZsYBkoXkY9b7eq1EhwJaw7FF3akA3KBQ' >>> host='http://localhost:8080' >>> path='/client/api' >>> conn=Driver(apikey,secretkey,secure='False',host='localhost:8080',path=path) >>> conn=Driver(key=apikey,secret=secretkey,secure=False,host='localhost',port='8080',path=path) >>> conn.list_images() [<NodeImage: id=13ccff62-132b-4caf-b456-e8ef20cbff0e, name=tiny Linux, driver=CloudStack ...>] >>> conn.list_sizes() [<NodeSize: id=ef2537ad-c70f-11e1-821b-0800277e749c, name=tinyOffering, ram=100 disk=0 bandwidth=0 price=0 driver=CloudStack ...>, <NodeSize: id=c66c2557-12a7-4b32-94f4-48837da3fa84, name=Small Instance, ram=512 disk=0 bandwidth=0 price=0 driver=CloudStack ...>, <NodeSize: id=3d8b82e5-d8e7-48d5-a554-cf853111bc50, name=Medium Instance, ram=1024 disk=0 bandwidth=0 price=0 driver=CloudStack ...>] >>> images=conn.list_images() >>> offerings=conn.list_sizes() >>> node=conn.create_node(name='toto',image=images[0],size=offerings[0]) >>> help(node) >>> node.get_uuid() 'b1aa381ba1de7f2d5048e248848993d5a900984f' >>> node.name u'toto'
|
VM.CREATE
|
TEMPLATE.EXTRACT
|
SG.REVOKE.INGRESS
|
|
VM.DESTROY
|
TEMPLATE.UPLOAD
|
HOST.RECONNECT
|
|
VM.START
|
TEMPLATE.CLEANUP
|
MAINT.CANCEL
|
|
VM.STOP
|
VOLUME.CREATE
|
MAINT.CANCEL.PS
|
|
VM.REBOOT
|
VOLUME.DELETE
|
MAINT.PREPARE
|
|
VM.UPGRADE
|
VOLUME.ATTACH
|
MAINT.PREPARE.PS
|
|
VM.RESETPASSWORD
|
VOLUME.DETACH
|
VPN.REMOTE.ACCESS.CREATE
|
|
ROUTER.CREATE
|
VOLUME.UPLOAD
|
VPN.USER.ADD
|
|
ROUTER.DESTROY
|
SERVICEOFFERING.CREATE
|
VPN.USER.REMOVE
|
|
ROUTER.START
|
SERVICEOFFERING.UPDATE
|
NETWORK.RESTART
|
|
ROUTER.STOP
|
SERVICEOFFERING.DELETE
|
UPLOAD.CUSTOM.CERTIFICATE
|
|
ROUTER.REBOOT
|
DOMAIN.CREATE
|
UPLOAD.CUSTOM.CERTIFICATE
|
|
ROUTER.HA
|
DOMAIN.DELETE
|
STATICNAT.DISABLE
|
|
PROXY.CREATE
|
DOMAIN.UPDATE
|
SSVM.CREATE
|
|
PROXY.DESTROY
|
SNAPSHOT.CREATE
|
SSVM.DESTROY
|
|
PROXY.START
|
SNAPSHOT.DELETE
|
SSVM.START
|
|
PROXY.STOP
|
SNAPSHOTPOLICY.CREATE
|
SSVM.STOP
|
|
PROXY.REBOOT
|
SNAPSHOTPOLICY.UPDATE
|
SSVM.REBOOT
|
|
PROXY.HA
|
SNAPSHOTPOLICY.DELETE
|
SSVM.H
|
|
VNC.CONNECT
|
VNC.DISCONNECT
|
NET.IPASSIGN
|
|
NET.IPRELEASE
|
NET.RULEADD
|
NET.RULEDELETE
|
|
NET.RULEMODIFY
|
NETWORK.CREATE
|
NETWORK.DELETE
|
|
LB.ASSIGN.TO.RULE
|
LB.REMOVE.FROM.RULE
|
LB.CREATE
|
|
LB.DELETE
|
LB.UPDATE
|
USER.LOGIN
|
|
USER.LOGOUT
|
USER.CREATE
|
USER.DELETE
|
|
USER.UPDATE
|
USER.DISABLE
|
TEMPLATE.CREATE
|
|
TEMPLATE.DELETE
|
TEMPLATE.UPDATE
|
TEMPLATE.COPY
|
|
TEMPLATE.DOWNLOAD.START
|
TEMPLATE.DOWNLOAD.SUCCESS
|
TEMPLATE.DOWNLOAD.FAILED
|
|
ISO.CREATE
|
ISO.DELETE
|
ISO.COPY
|
|
ISO.ATTACH
|
ISO.DETACH
|
ISO.EXTRACT
|
|
ISO.UPLOAD
|
SERVICE.OFFERING.CREATE
|
SERVICE.OFFERING.EDIT
|
|
SERVICE.OFFERING.DELETE
|
DISK.OFFERING.CREATE
|
DISK.OFFERING.EDIT
|
|
DISK.OFFERING.DELETE
|
NETWORK.OFFERING.CREATE
|
NETWORK.OFFERING.EDIT
|
|
NETWORK.OFFERING.DELETE
|
POD.CREATE
|
POD.EDIT
|
|
POD.DELETE
|
ZONE.CREATE
|
ZONE.EDIT
|
|
ZONE.DELETE
|
VLAN.IP.RANGE.CREATE
|
VLAN.IP.RANGE.DELETE
|
|
CONFIGURATION.VALUE.EDIT
|
SG.AUTH.INGRESS
|
|
MEMORY = 0
CPU = 1
STORAGE =2
STORAGE_ALLOCATED = 3
PUBLIC_IP = 4
PRIVATE_IP = 5
HOST = 6
USERVM = 7
DOMAIN_ROUTER = 8
CONSOLE_PROXY = 9
ROUTING = 10// lost connection to default route (to the gateway)
STORAGE_MISC = 11 // lost connection to default route (to the gateway)
USAGE_SERVER = 12 // lost connection to default route (to the gateway)
MANAGMENT_NODE = 13 // lost connection to default route (to the gateway)
DOMAIN_ROUTER_MIGRATE = 14
CONSOLE_PROXY_MIGRATE = 15
USERVM_MIGRATE = 16
VLAN = 17
SSVM = 18
USAGE_SERVER_RESULT = 19
STORAGE_DELETE = 20;
UPDATE_RESOURCE_COUNT = 21; //Generated when we fail to update the resource count
USAGE_SANITY_RESULT = 22;
DIRECT_ATTACHED_PUBLIC_IP = 23;
LOCAL_STORAGE = 24;
RESOURCE_LIMIT_EXCEEDED = 25; //Generated when the resource limit exceeds the limit. Currently used for recurring snapshots only
|
Etc/GMT+12
|
Etc/GMT+11
|
Pacific/Samoa
|
|
Pacific/Honolulu
|
US/Alaska
|
America/Los_Angeles
|
|
Mexico/BajaNorte
|
US/Arizona
|
US/Mountain
|
|
America/Chihuahua
|
America/Chicago
|
America/Costa_Rica
|
|
America/Mexico_City
|
Canada/Saskatchewan
|
America/Bogota
|
|
America/New_York
|
America/Caracas
|
America/Asuncion
|
|
America/Cuiaba
|
America/Halifax
|
America/La_Paz
|
|
America/Santiago
|
America/St_Johns
|
America/Araguaina
|
|
America/Argentina/Buenos_Aires
|
America/Cayenne
|
America/Godthab
|
|
America/Montevideo
|
Etc/GMT+2
|
Atlantic/Azores
|
|
Atlantic/Cape_Verde
|
Africa/Casablanca
|
Etc/UTC
|
|
Atlantic/Reykjavik
|
Europe/London
|
CET
|
|
Europe/Bucharest
|
Africa/Johannesburg
|
Asia/Beirut
|
|
Africa/Cairo
|
Asia/Jerusalem
|
Europe/Minsk
|
|
Europe/Moscow
|
Africa/Nairobi
|
Asia/Karachi
|
|
Asia/Kolkata
|
Asia/Bangkok
|
Asia/Shanghai
|
|
Asia/Kuala_Lumpur
|
Australia/Perth
|
Asia/Taipei
|
|
Asia/Tokyo
|
Asia/Seoul
|
Australia/Adelaide
|
|
Australia/Darwin
|
Australia/Brisbane
|
Australia/Canberra
|
|
Pacific/Guam
|
Pacific/Auckland
|
|
| Revision History | |||
|---|---|---|---|
| Revision 0-0 | Tue May 29 2012 | ||
| |||