Package org.jclouds.cloudstack.features
Interface DomainAccountApi
-
- All Superinterfaces:
AccountApi
- All Known Subinterfaces:
GlobalAccountApi
public interface DomainAccountApi extends AccountApi
Provides synchronous access to CloudStack Account features available to Domain Admin users.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncCreateResponse
disableAccount(String accountName, String domainId, boolean onlyLock)
Disable or lock an accountAccount
enableAccount(String accountName, String domainId)
Enable an account-
Methods inherited from interface org.jclouds.cloudstack.features.AccountApi
getAccount, listAccounts
-
-
-
-
Method Detail
-
enableAccount
@Named("enableAccount") @GET @Consumes("application/json") Account enableAccount(@QueryParam("account") String accountName, @QueryParam("domainid") String domainId)
Enable an account- Parameters:
accountName
- the account name you are enablingdomainId
- the domain ID
-
disableAccount
@Named("disableAccount") @GET @Consumes("application/json") AsyncCreateResponse disableAccount(@QueryParam("account") String accountName, @QueryParam("domainid") String domainId, @QueryParam("lock") boolean onlyLock)
Disable or lock an account- Parameters:
accountName
- the account name you are disablingdomainId
- the domain IDonlyLock
- only lock if true disable otherwise
-
-