Share via


HDInsightContainersExtensions.GetHDInsightClusterPoolsAsync Method

Definition

Gets the list of Cluster Pools within a Subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusterpools
  • Operation Id: ClusterPools_ListBySubscription
  • Default Api Version: 2024-05-01-preview
  • Resource: HDInsightClusterPoolResource
public static Azure.AsyncPageable<Azure.ResourceManager.HDInsight.Containers.HDInsightClusterPoolResource> GetHDInsightClusterPoolsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetHDInsightClusterPoolsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.HDInsight.Containers.HDInsightClusterPoolResource>
<Extension()>
Public Function GetHDInsightClusterPoolsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of HDInsightClusterPoolResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to