Share via


PostgreSqlExtensions.GetPostgreSqlServersAsync Method

Definition

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.AsyncPageable<Azure.ResourceManager.PostgreSql.PostgreSqlServerResource> GetPostgreSqlServersAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetPostgreSqlServersAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PostgreSql.PostgreSqlServerResource>
<Extension()>
Public Function GetPostgreSqlServersAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of PostgreSqlServerResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to