PostgreSqlFlexibleServerTuningOptionResource.GetRecommendations 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.Pageable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendation> GetRecommendations(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerRecommendationFilterType? recommendationType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRecommendations : Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerRecommendationFilterType> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendation>
override this.GetRecommendations : Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerRecommendationFilterType> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendation>
Public Overridable Function GetRecommendations (Optional recommendationType As Nullable(Of PostgreSqlFlexibleServerRecommendationFilterType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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.