PostgreSqlFlexibleServerTuningOptionResource.GetRecommendationsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Lists available object recommendations.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/tuningOptions/{tuningOption}/recommendations
- Operation Id: TuningOptions_ListRecommendations
- Default Api Version: 2025-08-01
- 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
An async collection of ObjectRecommendation that may take multiple service requests to iterate over.