Package org.jclouds.cloudstack.features
Interface GlobalAccountApi
- All Superinterfaces:
AccountApi
,DomainAccountApi
Provides synchronous access to CloudStack Account features available to Global
Admin users.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateAccount
(String userName, Account.Type accountType, String email, String firstName, String lastName, String hashedPassword, CreateAccountOptions... options) Create a new Cloudstack accountvoid
deleteAccount
(String id) Delete an account with the specified IDupdateAccount
(String accountName, String domainId, String newName, UpdateAccountOptions... options) Update an existing accountMethods inherited from interface org.jclouds.cloudstack.features.AccountApi
getAccount, listAccounts
Methods inherited from interface org.jclouds.cloudstack.features.DomainAccountApi
disableAccount, enableAccount
-
Method Details
-
createAccount
@Named("createAccount") @GET @Consumes("application/json") Account createAccount(@QueryParam("username") String userName, @QueryParam("accounttype") Account.Type accountType, @QueryParam("email") String email, @QueryParam("firstname") String firstName, @QueryParam("lastname") String lastName, @QueryParam("password") String hashedPassword, CreateAccountOptions... options) Create a new Cloudstack account- Parameters:
userName
- unique username.accountType
- type of accountemail
-firstName
-lastName
-hashedPassword
- Hashed 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.options
- optional parameters- Returns:
-
updateAccount
@Named("updateAccount") @GET @Consumes("application/json") Account updateAccount(@QueryParam("account") String accountName, @QueryParam("domainid") String domainId, @QueryParam("newname") String newName, UpdateAccountOptions... options) Update an existing account- Parameters:
accountName
- the current account namedomainId
- the ID of the domain were the account existsnewName
- new name for the accountoptions
- optional arguments- Returns:
-
deleteAccount
@Named("deleteAccount") @GET @Consumes("application/json") void deleteAccount(@QueryParam("id") String id) Delete an account with the specified ID- Parameters:
accountId
-
-