Partager via


HDInsightClusterPoolResource.GetHDInsightClusterAsync Méthode

Définition

Obtient un cluster HDInsight.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}/clusters/{clusterName}
  • IdClusters_Get d’opération
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))

Paramètres

clusterName
String

nom du cluster HDInsight.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

clusterName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

clusterName a la valeur null.

S’applique à