Interface GlobalAccountApi

    • Method Detail

      • 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 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("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 name
        domainId - the ID of the domain were the account exists
        newName - new name for the account
        options - 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 -