Partilhar via


ContainerServiceManagedClusterResource.GetCommandResultAsync Método

Definição

Obtém os resultados de um comando que foi executado no Cluster Gerenciado.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/commandResults/{commandId}
  • IdManagedClusters_GetCommandResult de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.Models.ManagedClusterRunCommandResult>> GetCommandResultAsync (string commandId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCommandResultAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.Models.ManagedClusterRunCommandResult>>
override this.GetCommandResultAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.Models.ManagedClusterRunCommandResult>>
Public Overridable Function GetCommandResultAsync (commandId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ManagedClusterRunCommandResult))

Parâmetros

commandId
String

Id do comando.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

commandId é nulo.

Aplica-se a