CosmosDBExtensions.GetThroughputPoolResources Method

Definition

Overloads

GetThroughputPoolResources(SubscriptionResource, CancellationToken)

Lists all the Azure Cosmos DB Throughput Pools available under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/throughputPools
  • Operation Id: ThroughputPools_List
  • Default Api Version: 2024-02-15-preview
  • Resource: ThroughputPoolResource
GetThroughputPoolResources(ResourceGroupResource)

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

GetThroughputPoolResources(SubscriptionResource, CancellationToken)

Source:
CosmosDBExtensions.cs

Lists all the Azure Cosmos DB Throughput Pools available under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/throughputPools
  • Operation Id: ThroughputPools_List
  • Default Api Version: 2024-02-15-preview
  • Resource: ThroughputPoolResource
public static Azure.Pageable<Azure.ResourceManager.CosmosDB.ThroughputPoolResource> GetThroughputPoolResources (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetThroughputPoolResources : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CosmosDB.ThroughputPoolResource>
<Extension()>
Public Function GetThroughputPoolResources (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ThroughputPoolResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetThroughputPoolResources(ResourceGroupResource)

Source:
CosmosDBExtensions.cs

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

public static Azure.ResourceManager.CosmosDB.ThroughputPoolResourceCollection GetThroughputPoolResources (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetThroughputPoolResources : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.CosmosDB.ThroughputPoolResourceCollection
<Extension()>
Public Function GetThroughputPoolResources (resourceGroupResource As ResourceGroupResource) As ThroughputPoolResourceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ThroughputPoolResources and their operations over a ThroughputPoolResource.

Exceptions

resourceGroupResource is null.

Applies to