Compartilhar via


HDInsightExtensions.GetHDInsightCluster 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 static Azure.Response<Azure.ResourceManager.HDInsight.HDInsightClusterResource> GetHDInsightCluster (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default);
static member GetHDInsightCluster : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.HDInsight.HDInsightClusterResource>
<Extension()>
Public Function GetHDInsightCluster (resourceGroupResource As ResourceGroupResource, clusterName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of HDInsightClusterResource)

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual o método será executado.

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