Sdílet prostřednictvím


SqlExtensions.GetInstancePools Method

Definition

Overloads

GetInstancePools(ResourceGroupResource)

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

GetInstancePools(SubscriptionResource, CancellationToken)

Gets a list of all instance pools in the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/instancePools
  • Operation Id: InstancePools_List
  • Default Api Version: 2023-05-01-preview
  • Resource: InstancePoolResource

GetInstancePools(ResourceGroupResource)

Source:
SqlExtensions.cs
Source:
SqlExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of InstancePoolResources and their operations over a InstancePoolResource.

Exceptions

resourceGroupResource is null.

Applies to

GetInstancePools(SubscriptionResource, CancellationToken)

Source:
SqlExtensions.cs
Source:
SqlExtensions.cs

Gets a list of all instance pools in the subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to