Dela via


HDInsightClusterResource.RestartVirtualMachineHostsAsync Method

Definition

Restarts the specified HDInsight cluster hosts.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts
  • Operation Id: VirtualMachines_RestartHosts
  • Default Api Version: 2024-08-01-preview
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> RestartVirtualMachineHostsAsync (Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable<string> content, System.Threading.CancellationToken cancellationToken = default);
abstract member RestartVirtualMachineHostsAsync : Azure.WaitUntil * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.RestartVirtualMachineHostsAsync : Azure.WaitUntil * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function RestartVirtualMachineHostsAsync (waitUntil As WaitUntil, content As IEnumerable(Of String), Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
IEnumerable<String>

The list of hosts to restart.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to