Share via


MockableHDInsightSubscriptionResource.GetHDInsightClustersAsync Method

Definition

Lists all the HDInsight clusters under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters
  • Operation Id: Clusters_List
  • Default Api Version: 2024-08-01-preview
  • Resource: HDInsightClusterResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.HDInsight.HDInsightClusterResource> GetHDInsightClustersAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetHDInsightClustersAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.HDInsight.HDInsightClusterResource>
override this.GetHDInsightClustersAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.HDInsight.HDInsightClusterResource>
Public Overridable Function GetHDInsightClustersAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of HDInsightClusterResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of HDInsightClusterResource that may take multiple service requests to iterate over.

Applies to