CosmosDBForPostgreSqlExtensions.GetCosmosDBForPostgreSqlClusters Method

Definition

Overloads

GetCosmosDBForPostgreSqlClusters(ResourceGroupResource)

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

GetCosmosDBForPostgreSqlClusters(SubscriptionResource, CancellationToken)

Lists all clusters in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2
  • Operation Id: Clusters_List

GetCosmosDBForPostgreSqlClusters(ResourceGroupResource)

Source:
CosmosDBForPostgreSqlExtensions.cs
Source:
CosmosDBForPostgreSqlExtensions.cs

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

public static Azure.ResourceManager.CosmosDBForPostgreSql.CosmosDBForPostgreSqlClusterCollection GetCosmosDBForPostgreSqlClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetCosmosDBForPostgreSqlClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.CosmosDBForPostgreSql.CosmosDBForPostgreSqlClusterCollection
<Extension()>
Public Function GetCosmosDBForPostgreSqlClusters (resourceGroupResource As ResourceGroupResource) As CosmosDBForPostgreSqlClusterCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of CosmosDBForPostgreSqlClusterResources and their operations over a CosmosDBForPostgreSqlClusterResource.

Exceptions

resourceGroupResource is null.

Applies to

GetCosmosDBForPostgreSqlClusters(SubscriptionResource, CancellationToken)

Source:
CosmosDBForPostgreSqlExtensions.cs
Source:
CosmosDBForPostgreSqlExtensions.cs

Lists all clusters in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2
  • Operation Id: Clusters_List
public static Azure.Pageable<Azure.ResourceManager.CosmosDBForPostgreSql.CosmosDBForPostgreSqlClusterResource> GetCosmosDBForPostgreSqlClusters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetCosmosDBForPostgreSqlClusters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CosmosDBForPostgreSql.CosmosDBForPostgreSqlClusterResource>
<Extension()>
Public Function GetCosmosDBForPostgreSqlClusters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CosmosDBForPostgreSqlClusterResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to