Last active
December 16, 2015 09:18
-
-
Save vogxn/5411579 to your computer and use it in GitHub Desktop.
createAccount shows more fields in its actual response than what the createAccount command shows from listApis: for eg: fields like primarystorageavailable, vmtotal, cputotal etc are missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| primarystorageavailable: u'Unlimited', | |
| domain: u'ROOT', | |
| domainid: u'73b68932-a7f7-11e2-aa22-6cea4fcc1400', | |
| iplimit: u'Unlimited', | |
| volumelimit: u'Unlimited', | |
| memorytotal: 0, | |
| secondarystorageavailable: u'Unlimited', | |
| jobstatus: 0, | |
| vmtotal: 0, | |
| cputotal: 0, | |
| id: u'f65e7111-3c46-45be-ad47-9e6787a9709a', | |
| cpuavailable: u'Unlimited', | |
| projectlimit: u'Unlimited', | |
| networklimit: u'Unlimited', | |
| iptotal: 0, | |
| volumetotal: 0, | |
| snapshotlimit: u'Unlimited', | |
| state: u'enabled', | |
| networktotal: 0, | |
| accounttype: 1, | |
| networkavailable: u'Unlimited', | |
| primarystoragetotal: 0, | |
| templatelimit: u'Unlimited', | |
| snapshottotal: 0, | |
| templateavailable: u'Unlimited', | |
| vmlimit: u'Unlimited', | |
| memoryavailable: u'Unlimited', | |
| secondarystoragetotal: 0, | |
| templatetotal: 0, | |
| projecttotal: 0, | |
| user: [ | |
| { | |
| username: u'DU4ZX3', | |
| account: u'DU4ZX3', | |
| domainid: u'73b68932-a7f7-11e2-aa22-6cea4fcc1400', | |
| firstname: u'FF5UPD', | |
| created: u'2013-04-18T15: 25: 36+0530', | |
| lastname: u'JFQ1UM', | |
| domain: u'ROOT', | |
| jobstatus: 0, | |
| id: u'cb9c478a-275f-4f58-98b3-c4601f3b4c96', | |
| iscallerchilddomain: False, | |
| state: u'enabled', | |
| accounttype: 1, | |
| email: u'ff5upd.jfq1um@cloudstack.org', | |
| isdefault: False, | |
| accountid: u'f65e7111-3c46-45be-ad47-9e6787a9709a' | |
| } | |
| ], | |
| projectavailable: u'Unlimited', | |
| isdefault: False, | |
| primarystoragelimit: u'Unlimited', | |
| secondarystoragelimit: u'Unlimited', | |
| volumeavailable: u'Unlimited', | |
| name: u'DU4ZX3', | |
| vmavailable: u'Unlimited', | |
| ipavailable: u'Unlimited', | |
| memorylimit: u'Unlimited', | |
| cpulimit: u'Unlimited', | |
| snapshotavailable: u'Unlimited' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "listapisresponse": { | |
| "count": 1, | |
| "api": [ | |
| { | |
| "name": "createAccount", | |
| "description": "Creates an account", | |
| "isasync": false, | |
| "related": "createUser,getUser,listUsers,disableUser,updateUser,enableUser,lockUser", | |
| "params": [ | |
| { | |
| "name": "userid", | |
| "description": "User UUID, required for adding account from external provisioning system", | |
| "type": "string", | |
| "length": 255, | |
| "required": false | |
| }, | |
| { | |
| "name": "domainid", | |
| "description": "Creates the user under the specified domain.", | |
| "type": "uuid", | |
| "length": 255, | |
| "required": false, | |
| "related": "listDomains,createDomain,updateDomain,listDomainChildren" | |
| }, | |
| { | |
| "name": "lastname", | |
| "description": "lastname", | |
| "type": "string", | |
| "length": 255, | |
| "required": true | |
| }, | |
| { | |
| "name": "account", | |
| "description": "Creates the user under the specified account. If no account is specified, the username will be used as the account name.", | |
| "type": "string", | |
| "length": 255, | |
| "required": false | |
| }, | |
| { | |
| "name": "accountid", | |
| "description": "Account UUID, required for adding account from external provisioning system", | |
| "type": "string", | |
| "length": 255, | |
| "required": false | |
| }, | |
| { | |
| "name": "username", | |
| "description": "Unique username.", | |
| "type": "string", | |
| "length": 255, | |
| "required": true | |
| }, | |
| { | |
| "name": "password", | |
| "description": "Clear text password (Default hashed to SHA256SALT). If you wish to use any other hashing algorithm, you would need to write a custom authentication adapter See Docs section.", | |
| "type": "string", | |
| "length": 255, | |
| "required": true | |
| }, | |
| { | |
| "name": "accountdetails", | |
| "description": "details for account used to store specific parameters", | |
| "type": "map", | |
| "length": 255, | |
| "required": false | |
| }, | |
| { | |
| "name": "networkdomain", | |
| "description": "Network domain for the account's networks", | |
| "type": "string", | |
| "length": 255, | |
| "required": false | |
| }, | |
| { | |
| "name": "timezone", | |
| "description": "Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.", | |
| "type": "string", | |
| "length": 255, | |
| "required": false | |
| }, | |
| { | |
| "name": "email", | |
| "description": "email", | |
| "type": "string", | |
| "length": 255, | |
| "required": true | |
| }, | |
| { | |
| "name": "firstname", | |
| "description": "firstname", | |
| "type": "string", | |
| "length": 255, | |
| "required": true | |
| }, | |
| { | |
| "name": "accounttype", | |
| "description": "Type of the account. Specify 0 for user, 1 for root admin, and 2 for domain admin", | |
| "type": "short", | |
| "length": 255, | |
| "required": true | |
| } | |
| ], | |
| "response": [ | |
| { | |
| "name": "account", | |
| "description": "the account name of the user", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "accounttype", | |
| "description": "the account type of the user", | |
| "type": "short" | |
| }, | |
| { | |
| "name": "timezone", | |
| "description": "the timezone user was created in", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "isdefault", | |
| "description": "true if user is default, false otherwise", | |
| "type": "boolean" | |
| }, | |
| { | |
| "name": "id", | |
| "description": "the user ID", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "state", | |
| "description": "the user state", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "username", | |
| "description": "the user name", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "apikey", | |
| "description": "the api key of the user", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "email", | |
| "description": "the user email address", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "domain", | |
| "description": "the domain name of the user", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "lastname", | |
| "description": "the user lastname", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "domainid", | |
| "description": "the domain ID of the user", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "accountid", | |
| "description": "the account ID of the user", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "secretkey", | |
| "description": "the secret key of the user", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "created", | |
| "description": "the date and time the user account was created", | |
| "type": "date" | |
| }, | |
| { | |
| "name": "firstname", | |
| "description": "the user firstname", | |
| "type": "string" | |
| }, | |
| { | |
| "name": "iscallerchilddomain", | |
| "description": "the boolean value representing if the updating target is in caller's child domain", | |
| "type": "boolean" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment