Compartir a través de


IVirtualMachinesOperations.RestartHostsWithHttpMessagesAsync Método

Definición

Reinicia los hosts de clúster de HDInsight especificados.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> RestartHostsWithHttpMessagesAsync (string resourceGroupName, string clusterName, System.Collections.Generic.IList<string> hosts, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RestartHostsWithHttpMessagesAsync : string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function RestartHostsWithHttpMessagesAsync (resourceGroupName As String, clusterName As String, hosts As IList(Of String), Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parámetros

resourceGroupName
String

Nombre del grupo de recursos.

clusterName
String

Nombre del clúster.

hosts
IList<String>

Lista de hosts que se van a reiniciar

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Excepciones

Se produce cuando la operación devolvió un código de estado no válido

Se produce cuando un parámetro obligatorio es NULL

Se aplica a