Interface DedicatedHostsClient


public interface DedicatedHostsClient
An instance of this class provides access to all the operations defined in DedicatedHostsClient.
  • Method Details

    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters)
      Create or update a dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Create Dedicated Host.
      Returns:
      specifies information about the Dedicated host along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginCreateOrUpdateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters)
      Create or update a dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Create Dedicated Host.
      Returns:
      the PollerFlux for polling of specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginCreateOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters)
      Create or update a dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Create Dedicated Host.
      Returns:
      the SyncPoller for polling of specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginCreateOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters, com.azure.core.util.Context context)
      Create or update a dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Create Dedicated Host.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAsync

      Mono<DedicatedHostInner> createOrUpdateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters)
      Create or update a dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Create Dedicated Host.
      Returns:
      specifies information about the Dedicated host on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      DedicatedHostInner createOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters)
      Create or update a dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Create Dedicated Host.
      Returns:
      specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      DedicatedHostInner createOrUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostInner parameters, com.azure.core.util.Context context)
      Create or update a dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Create Dedicated Host.
      context - The context to associate with this operation.
      Returns:
      specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters)
      Update an dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Update Dedicated Host operation.
      Returns:
      specifies information about the Dedicated host along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginUpdateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters)
      Update an dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Update Dedicated Host operation.
      Returns:
      the PollerFlux for polling of specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters)
      Update an dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Update Dedicated Host operation.
      Returns:
      the SyncPoller for polling of specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DedicatedHostInner>,DedicatedHostInner> beginUpdate(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters, com.azure.core.util.Context context)
      Update an dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Update Dedicated Host operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateAsync

      Mono<DedicatedHostInner> updateAsync(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters)
      Update an dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Update Dedicated Host operation.
      Returns:
      specifies information about the Dedicated host on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      DedicatedHostInner update(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters)
      Update an dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Update Dedicated Host operation.
      Returns:
      specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      DedicatedHostInner update(String resourceGroupName, String hostGroupName, String hostname, DedicatedHostUpdate parameters, com.azure.core.util.Context context)
      Update an dedicated host .
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host .
      parameters - Parameters supplied to the Update Dedicated Host operation.
      context - The context to associate with this operation.
      Returns:
      specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname)
      Delete a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String hostGroupName, String hostname)
      Delete a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String hostGroupName, String hostname)
      Delete a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context)
      Delete a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String hostGroupName, String hostname)
      Delete a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String hostGroupName, String hostname)
      Delete a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context)
      Delete a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<DedicatedHostInner>> getWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname, InstanceViewTypes expand)
      Retrieves information about a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      expand - The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated host. 'UserData' is not supported for dedicated host.
      Returns:
      specifies information about the Dedicated host along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAsync

      Mono<DedicatedHostInner> getAsync(String resourceGroupName, String hostGroupName, String hostname, InstanceViewTypes expand)
      Retrieves information about a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      expand - The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated host. 'UserData' is not supported for dedicated host.
      Returns:
      specifies information about the Dedicated host on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAsync

      Mono<DedicatedHostInner> getAsync(String resourceGroupName, String hostGroupName, String hostname)
      Retrieves information about a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Returns:
      specifies information about the Dedicated host on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      DedicatedHostInner get(String resourceGroupName, String hostGroupName, String hostname)
      Retrieves information about a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Returns:
      specifies information about the Dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<DedicatedHostInner> getWithResponse(String resourceGroupName, String hostGroupName, String hostname, InstanceViewTypes expand, com.azure.core.util.Context context)
      Retrieves information about a dedicated host.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      expand - The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated host. 'UserData' is not supported for dedicated host.
      context - The context to associate with this operation.
      Returns:
      specifies information about the Dedicated host along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByHostGroupAsync

      com.azure.core.http.rest.PagedFlux<DedicatedHostInner> listByHostGroupAsync(String resourceGroupName, String hostGroupName)
      Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      Returns:
      the list dedicated host operation response as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByHostGroup

      com.azure.core.http.rest.PagedIterable<DedicatedHostInner> listByHostGroup(String resourceGroupName, String hostGroupName)
      Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      Returns:
      the list dedicated host operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByHostGroup

      com.azure.core.http.rest.PagedIterable<DedicatedHostInner> listByHostGroup(String resourceGroupName, String hostGroupName, com.azure.core.util.Context context)
      Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      context - The context to associate with this operation.
      Returns:
      the list dedicated host operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • restartWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> restartWithResponseAsync(String resourceGroupName, String hostGroupName, String hostname)
      Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRestartAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginRestartAsync(String resourceGroupName, String hostGroupName, String hostname)
      Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRestart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String hostGroupName, String hostname)
      Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRestart

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context)
      Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • restartAsync

      Mono<Void> restartAsync(String resourceGroupName, String hostGroupName, String hostname)
      Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • restart

      void restart(String resourceGroupName, String hostGroupName, String hostname)
      Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • restart

      void restart(String resourceGroupName, String hostGroupName, String hostname, com.azure.core.util.Context context)
      Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
      Parameters:
      resourceGroupName - The name of the resource group.
      hostGroupName - The name of the dedicated host group.
      hostname - The name of the dedicated host.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.