Delen via


SqlExtensions.GetVirtualClusters Method

Definition

Overloads

GetVirtualClusters(ResourceGroupResource)

Gets a collection of VirtualClusterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVirtualClusters() instead.

GetVirtualClusters(SubscriptionResource, CancellationToken)

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

GetVirtualClusters(ResourceGroupResource)

Source:
SqlExtensions.cs
Source:
SqlExtensions.cs

Gets a collection of VirtualClusterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVirtualClusters() instead.

public static Azure.ResourceManager.Sql.VirtualClusterCollection GetVirtualClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetVirtualClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Sql.VirtualClusterCollection
<Extension()>
Public Function GetVirtualClusters (resourceGroupResource As ResourceGroupResource) As VirtualClusterCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of VirtualClusterResources and their operations over a VirtualClusterResource.

Exceptions

resourceGroupResource is null.

Applies to

GetVirtualClusters(SubscriptionResource, CancellationToken)

Source:
SqlExtensions.cs
Source:
SqlExtensions.cs

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.Pageable<Azure.ResourceManager.Sql.VirtualClusterResource> GetVirtualClusters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualClusters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.VirtualClusterResource>
<Extension()>
Public Function GetVirtualClusters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualClusterResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to