Partilhar via


HDInsightClusterResource.RunJobClusterJobAsync Método

Definição

Operações em trabalhos do HDInsight no cluster do AKS.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}/runJob
  • Operação IdClusterJobs_RunJob
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HDInsight.Containers.Models.ClusterJob>> RunJobClusterJobAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.HDInsight.Containers.Models.ClusterJob clusterJob, System.Threading.CancellationToken cancellationToken = default);
abstract member RunJobClusterJobAsync : Azure.WaitUntil * Azure.ResourceManager.HDInsight.Containers.Models.ClusterJob * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HDInsight.Containers.Models.ClusterJob>>
override this.RunJobClusterJobAsync : Azure.WaitUntil * Azure.ResourceManager.HDInsight.Containers.Models.ClusterJob * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HDInsight.Containers.Models.ClusterJob>>
Public Overridable Function RunJobClusterJobAsync (waitUntil As WaitUntil, clusterJob As ClusterJob, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ClusterJob))

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de execução prolongada, consulte Exemplos de operação de Long-Running do Azure.Core.

clusterJob
ClusterJob

O trabalho cluster.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

clusterJob é nulo.

Aplica-se a