CloudStack v2.2.13 - 2.2.14 Root Admin API Reference

createAccount

Creates an account

Request parameters

Parameter NameDescriptionRequired
accounttypeType of the account. Specify 0 for user, 1 for root admin, and 2 for domain admintrue
emailemailtrue
firstnamefirstnametrue
lastnamelastnametrue
passwordHashed password (Default is MD5). If you wish to use any other hashing algorithm, you would need to write a custom authentication adapter See Docs section.true
usernameUnique username.true
accountCreates the user under the specified account. If no account is specified, the username will be used as the account name.false
accountdetailsdetails for account used to store specific parametersfalse
domainidCreates the user under the specified domain.false
networkdomainNetwork domain for the account's networksfalse
timezoneSpecifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.false

Response Tags

Response NameDescription
idthe user ID
accountthe account name of the user
accountidthe account ID of the user
accounttypethe account type of the user
apikeythe api key of the user
createdthe date and time the user account was created
domainthe domain name of the user
domainidthe domain ID of the user
emailthe user email address
firstnamethe user firstname
lastnamethe user lastname
secretkeythe secret key of the user
statethe user state
timezonethe timezone user was created in
usernamethe user name