ResourceRecommendationBaseCollection.GetAllAsync 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.
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'.
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.