Partilhar via


HDInsightClusterCollection.GetAsync(String, CancellationToken) Método

Definição

Obtém o cluster especificado.

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

Parâmetros

clusterName
String

O nome do cluster.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

clusterName é nulo.

Aplica-se a