Share via


NeonPostgresExtensions.GetPostgresVersionsOrganizationAsync Method

Definition

Action to retrieve the PostgreSQL versions.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Neon.Postgres/getPostgresVersions
  • Operation Id: Organizations_GetPostgresVersions
  • Default Api Version: 2025-03-01
  • Resource: NeonOrganizationResource
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NeonPostgres.Models.PgVersionsResult>> GetPostgresVersionsOrganizationAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.NeonPostgres.Models.PgVersion pgVersion = default, System.Threading.CancellationToken cancellationToken = default);
static member GetPostgresVersionsOrganizationAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.NeonPostgres.Models.PgVersion * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NeonPostgres.Models.PgVersionsResult>>
<Extension()>
Public Function GetPostgresVersionsOrganizationAsync (resourceGroupResource As ResourceGroupResource, Optional pgVersion As PgVersion = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PgVersionsResult))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

pgVersion
PgVersion

Post Action to retrieve the PostgreSQL versions.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource is null.

Applies to