ResourceRecommendationBaseCollection.GetAllAsync Method

Definition

Obtains cached recommendations for a subscription. The recommendations are generated or computed by invoking generateRecommendations.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/recommendations
  • Operation Id: Recommendations_List
public virtual Azure.AsyncPageable<Azure.ResourceManager.Advisor.ResourceRecommendationBaseResource> GetAllAsync (string filter = default, int? top = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Advisor.ResourceRecommendationBaseResource>
override this.GetAllAsync : string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Advisor.ResourceRecommendationBaseResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ResourceRecommendationBaseResource)

Parameters

filter
String

The filter to apply to the recommendations.<br>Filter can be applied to properties ['ResourceId', 'ResourceGroup', 'RecommendationTypeGuid', 'Category'] with operators ['eq', 'and', 'or'].<br>Example:<br>- $filter=Category eq 'Cost' and ResourceGroup eq 'MyResourceGroup'.

top
Nullable<Int32>

The number of recommendations per page if a paged version of this API is being used.

skipToken
String

The page-continuation token to use with a paged version of this API.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ResourceRecommendationBaseResource that may take multiple service requests to iterate over.

Applies to