Compartilhar via


IComputeNodeOperations.RebootWithHttpMessagesAsync Método

Definição

Reinicia o nó de computação especificado.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootHeaders>> RebootWithHttpMessagesAsync (string poolId, string nodeId, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootOption? nodeRebootOption = default, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootOptions computeNodeRebootOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RebootWithHttpMessagesAsync : string * string * Nullable<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootOption> * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootOptions * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<Microsoft.Azure.Batch.Protocol.Models.ComputeNodeRebootHeaders>>
Public Function RebootWithHttpMessagesAsync (poolId As String, nodeId As String, Optional nodeRebootOption As Nullable(Of ComputeNodeRebootOption) = Nothing, Optional computeNodeRebootOptions As ComputeNodeRebootOptions = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationHeaderResponse(Of ComputeNodeRebootHeaders))

Parâmetros

poolId
String

A ID do pool que contém o Nó de Computação.

nodeId
String

A ID do Nó de Computação que você deseja reiniciar.

nodeRebootOption
Nullable<ComputeNodeRebootOption>

Quando reinicializar o Nó de Computação e o que fazer com tarefas em execução no momento. O valor padrão é colocar novamente na fila. Os valores possíveis incluem: 'requeue', 'terminate', 'taskCompletion', 'retainedData'

computeNodeRebootOptions
ComputeNodeRebootOptions

Parâmetros adicionais para a operação

customHeaders
Dictionary<String,List<String>>

Os cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Exceções

Gerado quando a operação retornou um código de status inválido

Gerado quando um parâmetro necessário é nulo

Comentários

Você só poderá reiniciar um Nó de Computação se ele estiver em um estado ocioso ou em execução.

Aplica-se a