Partilhar via


HDInsightClusterResource.GetVirtualMachineAsyncOperationStatusAsync Método

Definição

Obtém o status de operação assíncrona.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts/azureasyncoperations/{operationId}
  • Operação IdVirtualMachines_GetAsyncOperationStatus
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HDInsight.Models.HDInsightAsyncOperationResult>> GetVirtualMachineAsyncOperationStatusAsync (string operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineAsyncOperationStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HDInsight.Models.HDInsightAsyncOperationResult>>
override this.GetVirtualMachineAsyncOperationStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.HDInsight.Models.HDInsightAsyncOperationResult>>
Public Overridable Function GetVirtualMachineAsyncOperationStatusAsync (operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HDInsightAsyncOperationResult))

Parâmetros

operationId
String

A ID da operação de execução prolongada.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

operationId é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

operationId é nulo.

Aplica-se a