AdvisorExtensions.GetAdvisorSuppressionContractsAsync 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.
Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed attribute of a recommendation is referred to as a suppression. <item> Mocking. To mock this method, please mock GetAdvisorSuppressionContractsAsync(Nullable<Int32>, String, CancellationToken) instead. </item>
public static Azure.AsyncPageable<Azure.ResourceManager.Advisor.AdvisorSuppressionContractResource> GetAdvisorSuppressionContractsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAdvisorSuppressionContractsAsync : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Advisor.AdvisorSuppressionContractResource>
<Extension()>
Public Function GetAdvisorSuppressionContractsAsync (subscriptionResource As SubscriptionResource, Optional top As Nullable(Of Integer) = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AdvisorSuppressionContractResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
The number of suppressions 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
A collection of AdvisorSuppressionContractResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource is null.