Compartir a través de


Suppressions interface

Interface representing a Suppressions.

Methods

create(string, string, string, SuppressionContract, SuppressionsCreateOptionalParams)

Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of a recommendation.

delete(string, string, string, SuppressionsDeleteOptionalParams)

Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.

get(string, string, string, SuppressionsGetOptionalParams)

Obtains the details of a suppression.

list(SuppressionsListOptionalParams)

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.

Method Details

create(string, string, string, SuppressionContract, SuppressionsCreateOptionalParams)

Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of a recommendation.

function create(resourceUri: string, recommendationId: string, name: string, suppressionContract: SuppressionContract, options?: SuppressionsCreateOptionalParams): Promise<SuppressionContract>

Parameters

resourceUri

string

The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.

recommendationId

string

The recommendation ID.

name

string

The name of the suppression.

suppressionContract
SuppressionContract

The snoozed or dismissed attribute; for example, the snooze duration.

options
SuppressionsCreateOptionalParams

The options parameters.

Returns

delete(string, string, string, SuppressionsDeleteOptionalParams)

Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.

function delete(resourceUri: string, recommendationId: string, name: string, options?: SuppressionsDeleteOptionalParams): Promise<void>

Parameters

resourceUri

string

The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.

recommendationId

string

The recommendation ID.

name

string

The name of the suppression.

options
SuppressionsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, SuppressionsGetOptionalParams)

Obtains the details of a suppression.

function get(resourceUri: string, recommendationId: string, name: string, options?: SuppressionsGetOptionalParams): Promise<SuppressionContract>

Parameters

resourceUri

string

The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.

recommendationId

string

The recommendation ID.

name

string

The name of the suppression.

options
SuppressionsGetOptionalParams

The options parameters.

Returns

list(SuppressionsListOptionalParams)

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.

function list(options?: SuppressionsListOptionalParams): PagedAsyncIterableIterator<SuppressionContract, SuppressionContract[], PageSettings>

Parameters

options
SuppressionsListOptionalParams

The options parameters.

Returns