Interface ServerGroupService

    • Method Detail

      • list

        List<? extends ServerGroup> list()
        Lists serverGroups that are associated with the account making the request
        Returns:
        the list of serverGroups
      • get

        ServerGroup get​(String id)
        Gets the serverGroup by id
        Parameters:
        name - the serverGroup id
        Returns:
        the serverGroup
      • delete

        ActionResponse delete​(String id)
        Deletes the serverGroup by id
        Parameters:
        name - the serverGroup id
        Returns:
        the action response
      • create

        ServerGroup create​(String name,
                           String policy)
        Generates or imports a serverGroup
        Parameters:
        name - the name of the serverGroup
        publicKey - the public key (optional), Null indicates one will be generated
        Returns:
        the newly created serverGroup