RecommendationsOperationsExtensions.ListAsync Method

Definition

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

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Advisor.Models.ResourceRecommendationBase>> ListAsync (this Microsoft.Azure.Management.Advisor.IRecommendationsOperations operations, string filter = default, int? top = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Advisor.IRecommendationsOperations * string * Nullable<int> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Advisor.Models.ResourceRecommendationBase>>
<Extension()>
Public Function ListAsync (operations As IRecommendationsOperations, Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of ResourceRecommendationBase))

Parameters

operations
IRecommendationsOperations

The operations group for this extension method.

filter
String

The filter to apply to the recommendations.

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.

Returns

Applies to