다음을 통해 공유


AdvisorExtensions.GetSuppressionContracts Method

Definition

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.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/suppressions
  • Operation Id: Suppressions_List
public static Azure.Pageable<Azure.ResourceManager.Advisor.SuppressionContractResource> GetSuppressionContracts (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
static member GetSuppressionContracts : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Advisor.SuppressionContractResource>
<Extension()>
Public Function GetSuppressionContracts (subscriptionResource As SubscriptionResource, Optional top As Nullable(Of Integer) = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SuppressionContractResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

top
Nullable<Int32>

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 SuppressionContractResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to