Sdílet prostřednictvím


PostgreSqlExtensions.GetPostgreSqlServers Method

Definition

Overloads

GetPostgreSqlServers(ResourceGroupResource)

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

GetPostgreSqlServers(SubscriptionResource, CancellationToken)

List all the servers in a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/servers
  • Operation Id: Servers_List
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlServerResource

GetPostgreSqlServers(ResourceGroupResource)

Source:
PostgreSqlExtensions.cs
Source:
PostgreSqlExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of PostgreSqlServerResources and their operations over a PostgreSqlServerResource.

Exceptions

resourceGroupResource is null.

Applies to

GetPostgreSqlServers(SubscriptionResource, CancellationToken)

Source:
PostgreSqlExtensions.cs
Source:
PostgreSqlExtensions.cs

List all the servers in a given subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to