PostgreSqlFlexibleServerTuningOptionResource.GetRecommendationsAsync Method

Definition

Lists available object recommendations.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions/{tuningOption}/recommendations.
  • Operation Id. : TuningOptionsOperationGroup_ListRecommendations.
  • Default Api Version. : 2026-04-01-preview.
  • Resource. : PostgreSqlFlexibleServerTuningOptionResource.
public virtual Azure.AsyncPageable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendation> GetRecommendationsAsync(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerRecommendationFilterType? recommendationType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRecommendationsAsync : Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerRecommendationFilterType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendation>
override this.GetRecommendationsAsync : Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerRecommendationFilterType> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendation>
Public Overridable Function GetRecommendationsAsync (Optional recommendationType As Nullable(Of PostgreSqlFlexibleServerRecommendationFilterType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ObjectRecommendation)

Parameters

recommendationType
Nullable<PostgreSqlFlexibleServerRecommendationFilterType>

Recommendations list filter. Retrieves recommendations based on type.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to