Dela via


SqlExtensions.GetVirtualClustersAsync Method

Definition

Gets a list of all virtualClusters in the subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to