org.jclouds.cloudstack.features
Interface GlobalAccountApi

All Superinterfaces:
AccountApi, DomainAccountApi

public interface GlobalAccountApi
extends DomainAccountApi

Provides synchronous access to CloudStack Account features available to Global Admin users.

See Also:

Method Summary
 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
 
Methods inherited from interface org.jclouds.cloudstack.features.DomainAccountApi
disableAccount, enableAccount
 
Methods inherited from interface org.jclouds.cloudstack.features.AccountApi
getAccount, listAccounts
 

Method Detail

createAccount

@Named(value="createAccount")
Account createAccount(String userName,
                            Account.Type accountType,
                            String email,
                            String firstName,
                            String lastName,
                            String hashedPassword,
                            CreateAccountOptions... options)
Create a new Cloudstack account

Parameters:
userName - unique username.
accountType - type of account
email -
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(value="updateAccount")
Account updateAccount(String accountName,
                            String domainId,
                            String newName,
                            UpdateAccountOptions... options)
Update an existing account

Parameters:
accountName - the current account name
domainId - the ID of the domain were the account exists
newName - new name for the account
options - optional arguments
Returns:

deleteAccount

@Named(value="deleteAccount")
void deleteAccount(String id)
Delete an account with the specified ID

Parameters:
accountId -


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.