Compartilhar via


HDInsightClusterPoolResource.GetHDInsightClusterAsync Método

Definição

Obtém um cluster HDInsight.

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

Parâmetros

clusterName
String

O nome do cluster HDInsight.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

clusterName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

clusterName é nulo.

Aplica-se a