Compartir a través de


ContainerServiceManagedClusterResource.GetCommandResultAsync Método

Definición

Obtiene los resultados de un comando que se ha ejecutado en el clúster administrado.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/commandResults/{commandId}
  • IdManagedClusters_GetCommandResult de operación
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. del comando.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

commandId es una cadena vacía y se espera que no esté vacía.

commandId es null.

Se aplica a