PostgreSqlFlexibleServerTuningOptionCollection.GetIfExistsAsync Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions/{tuningOption}
  • Operation Id: TuningOptions_Get
  • Default Api Version: 2025-08-01
  • Resource: PostgreSqlFlexibleServerTuningOptionResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerTuningOptionResource>> GetIfExistsAsync(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerTuningOptionType tuningOption, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerTuningOptionType * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerTuningOptionResource>>
override this.GetIfExistsAsync : Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerTuningOptionType * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerTuningOptionResource>>
Public Overridable Function GetIfExistsAsync (tuningOption As PostgreSqlFlexibleServerTuningOptionType, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of PostgreSqlFlexibleServerTuningOptionResource))

Parameters

tuningOption
PostgreSqlFlexibleServerTuningOptionType

The name of the tuning option.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to