Dela via


FlexibleServersExtensions.GetPostgreSqlFlexibleServers Method

Definition

Overloads

GetPostgreSqlFlexibleServers(ResourceGroupResource)

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

GetPostgreSqlFlexibleServers(SubscriptionResource, CancellationToken)

List all the servers in a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
  • Operation Id: Servers_List
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlFlexibleServerResource

GetPostgreSqlFlexibleServers(ResourceGroupResource)

Source:
FlexibleServersExtensions.cs
Source:
FlexibleServersExtensions.cs

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

public static Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerCollection GetPostgreSqlFlexibleServers (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetPostgreSqlFlexibleServers : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerCollection
<Extension()>
Public Function GetPostgreSqlFlexibleServers (resourceGroupResource As ResourceGroupResource) As PostgreSqlFlexibleServerCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of PostgreSqlFlexibleServerResources and their operations over a PostgreSqlFlexibleServerResource.

Exceptions

resourceGroupResource is null.

Applies to

GetPostgreSqlFlexibleServers(SubscriptionResource, CancellationToken)

Source:
FlexibleServersExtensions.cs
Source:
FlexibleServersExtensions.cs

List all the servers in a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/flexibleServers
  • Operation Id: Servers_List
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlFlexibleServerResource
public static Azure.Pageable<Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerResource> GetPostgreSqlFlexibleServers (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPostgreSqlFlexibleServers : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerResource>
<Extension()>
Public Function GetPostgreSqlFlexibleServers (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PostgreSqlFlexibleServerResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to