Interface AzureBareMetalInstances


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

    • list

      com.azure.core.http.rest.PagedIterable<AzureBareMetalInstance> list()
      Gets a list of Azure BareMetal instances in the specified subscription.

      Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various properties of each Azure BareMetal instance.

      Returns:
      a list of AzureBareMetal instances in the specified subscription 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<AzureBareMetalInstance> list(com.azure.core.util.Context context)
      Gets a list of Azure BareMetal instances in the specified subscription.

      Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various properties of each Azure BareMetal instance.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      a list of AzureBareMetal instances in the specified subscription 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<AzureBareMetalInstance> listByResourceGroup(String resourceGroupName)
      Gets a list of Azure BareMetal instances in the specified subscription and resource group.

      Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations returns various properties of each Azure BareMetal instance.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      a list of AzureBareMetal instances in the specified subscription and resource group 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<AzureBareMetalInstance> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Gets a list of Azure BareMetal instances in the specified subscription and resource group.

      Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations returns various properties of each Azure BareMetal instance.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      a list of AzureBareMetal instances in the specified subscription and resource group 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<AzureBareMetalInstance> getByResourceGroupWithResponse(String resourceGroupName, String azureBareMetalInstanceName, com.azure.core.util.Context context)
      Gets an Azure BareMetal instance.

      Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      azureBareMetalInstanceName - Name of the Azure BareMetal on Azure instance.
      context - The context to associate with this operation.
      Returns:
      an Azure BareMetal instance for the specified subscription, resource group, and instance name 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

      AzureBareMetalInstance getByResourceGroup(String resourceGroupName, String azureBareMetalInstanceName)
      Gets an Azure BareMetal instance.

      Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      azureBareMetalInstanceName - Name of the Azure BareMetal on Azure instance.
      Returns:
      an Azure BareMetal instance for the specified subscription, resource group, and instance name.
      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.
    • updateWithResponse

      com.azure.core.http.rest.Response<AzureBareMetalInstance> updateWithResponse(String resourceGroupName, String azureBareMetalInstanceName, Tags tagsParameter, com.azure.core.util.Context context)
      Patches the Tags field of a Azure BareMetal instance.

      Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      azureBareMetalInstanceName - Name of the Azure BareMetal on Azure instance.
      tagsParameter - Request body that only contains the new Tags field.
      context - The context to associate with this operation.
      Returns:
      azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties) 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.
    • update

      AzureBareMetalInstance update(String resourceGroupName, String azureBareMetalInstanceName, Tags tagsParameter)
      Patches the Tags field of a Azure BareMetal instance.

      Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.

      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      azureBareMetalInstanceName - Name of the Azure BareMetal on Azure instance.
      tagsParameter - Request body that only contains the new Tags field.
      Returns:
      azureBareMetal instance info on Azure (ARM properties and AzureBareMetal properties).
      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.