public interface GlobalAccountApi extends DomainAccountApi
Modifier and Type | Method and Description |
---|---|
Account |
createAccount(String userName,
Account.Type accountType,
String email,
String firstName,
String lastName,
String hashedPassword,
CreateAccountOptions... options)
Create a new Cloudstack account
|
void |
deleteAccount(String id)
Delete an account with the specified ID
|
Account |
updateAccount(String accountName,
String domainId,
String newName,
UpdateAccountOptions... options)
Update an existing account
|
disableAccount, enableAccount
getAccount, listAccounts
@Named(value="createAccount") @GET @Consumes(value="application/json") Account createAccount(@QueryParam(value="username") String userName, @QueryParam(value="accounttype") Account.Type accountType, @QueryParam(value="email") String email, @QueryParam(value="firstname") String firstName, @QueryParam(value="lastname") String lastName, @QueryParam(value="password") String hashedPassword, CreateAccountOptions... options)
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@Named(value="updateAccount") @GET @Consumes(value="application/json") Account updateAccount(@QueryParam(value="account") String accountName, @QueryParam(value="domainid") String domainId, @QueryParam(value="newname") String newName, UpdateAccountOptions... options)
accountName
- the current account namedomainId
- the ID of the domain were the account existsnewName
- new name for the accountoptions
- optional arguments@Named(value="deleteAccount") @GET @Consumes(value="application/json") void deleteAccount(@QueryParam(value="id") String id)
accountId
- Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.