createAccount
[Create the Account and a User for the account]
-
account
accountvar
-
accounttype
0
-
domainid
1
-
email
apiuser@gmail.com
-
firstname
apiuser
-
lastname
apiuserlastname
-
username
usernameparam
-
password
password
-
id
accountid
-
name
accountvar
listUsers
5 [List the Created User in (3)]
-
account
accountvar
-
id
userid
registerUserKeys
Registering the user
-
id
userid
-
apikey
apikey
-
secretkey
secretkey
createNetwork
[Creating default network]
-
zoneid
globalzoneid
-
networkOfferingId
globalnetworkofferingid
-
account
accountvar
-
domainid
1
-
name
defaultregressionnetwork
-
displaytext
defaultregressionnetwork
-
id
networkid
deployVirtualMachine
Deploying vm from small diskOffering
true
-
zoneid
globalzoneid
-
serviceofferingid
globalserviceofferingid
-
diskofferingid
globaldiskofferingid
-
templateid
globaltemplateid
-
account
accountvar
-
domainid
1
-
displayname
SnapshotsTest-VM-1
-
group
group1
-
networkids
networkid
-
id
smallvmid
deployVirtualMachine
Deploying vm from Medium disk offering
true
-
zoneid
globalzoneid
-
serviceofferingid
globalserviceofferingid
-
diskofferingid
mediumglobaldiskofferingid
-
templateid
globaltemplateid
-
account
accountvar
-
domainid
1
-
account
accountvar
-
domainid
1
-
displayname
SnapshotsTest-VM-2
-
group
group1
-
networkids
networkid
-
id
largevmid
listVolumes
-
virtualmachineid
smallvmid
-
type
ROOT
-
id
smallrootvolumeid
listVolumes
-
virtualmachineid
smallvmid
-
type
datadisk
-
id
smalldatavolumeid
listVolumes
-
virtualmachineid
largevmid
-
type
ROOT
-
id
largerootvolumeid
listVolumes
-
virtualmachineid
largevmid
-
type
datadisk
-
id
largedatavolumeid
sleep.sh
Sleep for some time
-
s
200
createSnapshot
Creating snapshot of ROOT disk of small vm
true
-
volumeid
smallrootvolumeid
-
id
smallrootsnapshot
createSnapshot
Creating snapshot of Data disk of small vm
true
-
volumeid
smalldatavolumeid
-
id
smalldatasnapshot
createSnapshot
Creating snapshot of ROOT disk of medium vm
true
-
volumeid
largerootvolumeid
-
id
largerootsnapshot
createSnapshot
Creating snapshot of DATA disk of medium vm
true
-
volumeid
largedatavolumeid
-
id
largedatasnapshot
createTemplate
Creating template of ROOT snapshot of small vm
true
-
snapshotid
smallrootsnapshot
-
name
-
displaytext
newtext
-
osTypeId
12
-
id
smalltemplateid
createTemplate
Creating template of ROOT snapshot of large vm
true
-
snapshotid
largerootsnapshot
-
name
-
displaytext
newtext
-
osTypeId
12
-
id
largetemplateid
deployVirtualMachine
Deploy a vm from template created from snapshot of ROOT disk of small vm
true
-
zoneid
globalzoneid
-
serviceofferingid
globalserviceofferingid
-
diskofferingid
globaldiskofferingid
-
templateid
smalltemplateid
-
account
accountvar
-
domainid
1
-
account
accountvar
-
domainid
1
-
displayname
SnapshotsTest-VM-3
-
group
group1
-
networkids
networkid
-
id
smallvmid1
deployVirtualMachine
Deploy a vm from template created from snapshot of ROOT disk of medium vm
true
-
zoneid
globalzoneid
-
serviceofferingid
globalserviceofferingid
-
diskofferingid
mediumglobaldiskofferinigid
-
templateid
largetemplateid
-
account
accountvar
-
domainid
1
-
account
accountvar
-
domainid
1
-
displayname
SnapshotsTest-VM-4
-
group
group1
-
networkids
networkid
-
id
largevmid1
createVolume
Create a volume from smaller disk snapshot
true
-
snapshotid
smallrootsnapshot
-
name
-
id
smallvolumeid
createVolume
Create a volume from larger disk snapshot
true
-
snapshotid
largerootsnapshot
-
name
-
id
largevolumeid
attachVolume
Attach small volume to the vm created from small snapshot
true
-
id
smallvolumeid
-
virtualmachineid
smallvmid1
attachVolume
Attach medium volume to the vm created from medium snapshot
true
-
id
largevolumeid
-
virtualmachineid
largevmid1
rebootVirtualMachine
Reboot small vm
-
id
smallvmid1
stopVirtualMachine
stop medium vm
-
id
largevmid1
startVirtualMachine
stop medium vm
-
id
largevmid1
destroyVirtualMachine
Destroy small vm
-
id
smallvmid1
destroyVirtualMachine
Destroy large vm
-
id
largevmid1
deleteAccount
Deleting a user
-
id
accountid