MajorVersionUpgradePrecheckCollection.GetAsync Method

Definition

Gets information about a major version upgrade precheck for a flexible server.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/majorVersionUpgradePrecheck/{precheckValidationId}.
  • Operation Id. : MajorVersionUpgradePrecheck_Get.
  • Default Api Version. : 2026-04-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PostgreSql.FlexibleServers.MajorVersionUpgradePrecheckResource>> GetAsync(string precheckValidationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PostgreSql.FlexibleServers.MajorVersionUpgradePrecheckResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PostgreSql.FlexibleServers.MajorVersionUpgradePrecheckResource>>
Public Overridable Function GetAsync (precheckValidationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MajorVersionUpgradePrecheckResource))

Parameters

precheckValidationId
String

The name of the MajorVersionUpgradePrecheckResource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

precheckValidationId is null.

precheckValidationId is an empty string, and was expected to be non-empty.

Applies to