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.
    See Also:
    • 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 enabling
        domainId - 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 disabling
        domainId - the domain ID
        onlyLock - only lock if true disable otherwise