Interface Registrations


public interface Registrations
Resource collection API of Registrations.
  • Method Details

    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<Registration> listByResourceGroup(String resourceGroup)
      Returns a list of all registrations.
      Parameters:
      resourceGroup - Name of the resource group.
      Returns:
      pageable list of registrations as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<Registration> listByResourceGroup(String resourceGroup, com.azure.core.util.Context context)
      Returns a list of all registrations.
      Parameters:
      resourceGroup - Name of the resource group.
      context - The context to associate with this operation.
      Returns:
      pageable list of registrations as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<Registration> list()
      Returns a list of all registrations under current subscription.
      Returns:
      pageable list of registrations as paginated response with PagedIterable.
      Throws:
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<Registration> list(com.azure.core.util.Context context)
      Returns a list of all registrations under current subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      pageable list of registrations as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<Registration> getByResourceGroupWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context)
      Returns the properties of an Azure Stack registration.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      context - The context to associate with this operation.
      Returns:
      registration information along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroup

      Registration getByResourceGroup(String resourceGroup, String registrationName)
      Returns the properties of an Azure Stack registration.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      Returns:
      registration information.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteByResourceGroupWithResponse

      com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context)
      Delete the requested Azure Stack registration.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroup, String registrationName)
      Delete the requested Azure Stack registration.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getActivationKeyWithResponse

      com.azure.core.http.rest.Response<ActivationKeyResult> getActivationKeyWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context)
      Returns Azure Stack Activation Key.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      context - The context to associate with this operation.
      Returns:
      the resource containing the Azure Stack activation key along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getActivationKey

      ActivationKeyResult getActivationKey(String resourceGroup, String registrationName)
      Returns Azure Stack Activation Key.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      Returns:
      the resource containing the Azure Stack activation key.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • enableRemoteManagementWithResponse

      com.azure.core.http.rest.Response<Void> enableRemoteManagementWithResponse(String resourceGroup, String registrationName, com.azure.core.util.Context context)
      Enables remote management for device under the Azure Stack registration.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • enableRemoteManagement

      void enableRemoteManagement(String resourceGroup, String registrationName)
      Enables remote management for device under the Azure Stack registration.
      Parameters:
      resourceGroup - Name of the resource group.
      registrationName - Name of the Azure Stack registration.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getById

      Registration getById(String id)
      Returns the properties of an Azure Stack registration.
      Parameters:
      id - the resource ID.
      Returns:
      registration information along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<Registration> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Returns the properties of an Azure Stack registration.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      registration information along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteById

      void deleteById(String id)
      Delete the requested Azure Stack registration.
      Parameters:
      id - the resource ID.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete the requested Azure Stack registration.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • define

      Begins definition for a new Registration resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new Registration definition.