createAccount
[Create the Account and a User for the account]
-
account
accountname
-
accounttype
globalaccttype
-
domainid
globaldomainid
-
email
firstuser@gmail.com
-
firstname
firstuser
-
lastname
firstuserlastname
-
username
getusernameparam1
-
password
password
-
id
getaccountid
-
state
enabled
listUsers
[List the User of the account]
-
account
accountname
-
accounttype
globalaccttype
-
domainid
globaldomainid
-
username
getusernameparam1
-
id
getuserid1
-
state
enabled
registerUserKeys
Registering the First User
-
id
getuserid1
-
apikey
apikey
-
secretkey
secretkey
createSecurityGroup
true
Creating First Security group for the Account
-
name
getsecuritygroupname1
-
description
-
id
getsecuritygroupid1
authorizeSecurityGroupIngress
true
Authorizing First network group ingress rule for the First Security Group
-
securitygroupid
getsecuritygroupid1
-
cidrlist
globalcidrlist
-
endport
22
-
startport
22
-
protocol
tcp
listSecurityGroups
true
List the Security group and get the ingress rule ID
-
securitygroupid
getsecuritygroupid1
-
ruleid
getingressruleid1
deployVirtualMachine
true
Deploying VM for the First Account
-
zoneId
globalzoneid
-
hypervisor
globalhypervisortype
-
templateId
globaltemplateid
-
serviceOfferingId
globalserviceofferingid
-
securitygroupids
getsecuritygroupid1
-
id
getvmid1
-
ipaddress
getvmip1
sleep.sh
Sleep for 2 min
-
s
120
ssh.sh
Ssh test for the vm
-
h
getvmip1
-
p
password
sleep.sh
Sleep for 1 min
-
s
60
revokeSecurityGroupIngress
true
Revoking network group igress
-
id
getingressruleid1
createSecurityGroup
true
Creating a Second Security group for the Account
-
name
getsecuritygroupname2
-
description
-
id
getsecuritygroupid2
authorizeSecurityGroupIngress
true
Authorizing network group ingress for the second Security group
-
securitygroupid
getsecuritygroupid2
-
usersecuritygrouplist[0].account
accountname
-
usersecuritygrouplist[0].group
getsecuritygroupname1
-
endport
22
-
startport
22
-
protocol
tcp
authorizeSecurityGroupIngress
true
Authorizing one more network group ingress rule for the Second Security Group
-
securitygroupid
getsecuritygroupid2
-
cidrlist
globalcidrlist
-
endport
22
-
startport
22
-
protocol
tcp
listSecurityGroups
true
List the Security group and get the first ingress rule ID
-
securitygroupid
getsecuritygroupid2
-
ruleid
getingressruleid2
deployVirtualMachine
true
Deploying Second VM for the First Account
-
zoneId
globalzoneid
-
hypervisor
globalhypervisortype
-
templateId
globaltemplateid
-
serviceOfferingId
flatnetworkserviceofferingid
-
securitygroupids
getsecuritygroupid2
-
id
getvmid2
-
ipaddress
getvmip2
sleep.sh
Sleep for 2 min
-
s
120
ssh.sh
Ssh test for the vm
-
h
getvmip2
-
p
password
sleep.sh
Sleep for 1 min
-
s
60
revokeSecurityGroupIngress
true
Revoking Second Network group's First ingress rule
-
id
getingressruleid2
listSecurityGroups
true
List the Security group and get the second ingress rule ID
-
securitygroupid
getsecuritygroupid2
-
ruleid
getingressruleid2
revokeSecurityGroupIngress
true
Revoking Second network group's second ingress rule
-
id
getingressruleid2
destroyVirtualMachine
true
Destroying virutal machine
-
id
getvmid1
sleep.sh
Sleep for 1 min
-
s
60
destroyVirtualMachine
true
Destroying virutal machine
-
id
getvmid2
sleep.sh
Sleep for 1 min
-
s
60
deleteUser
Deleting the user
-
id
getuserid1
deleteAccount
Delete Account
-
id
getaccountid