Skip to main content

alerts_suppression_rules

Creates, updates, deletes, gets or lists a alerts_suppression_rules resource.

Overview

Namealerts_suppression_rules
TypeResource
Idazure.security.alerts_suppression_rules

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
alert_typetextfield from the properties object
alertsSuppressionRuleNametextfield from the properties object
commenttextfield from the properties object
expiration_date_utctextfield from the properties object
last_modified_utctextfield from the properties object
reasontextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
suppression_alerts_scopetextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTalertsSuppressionRuleName, subscriptionIdGet dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription
listSELECTsubscriptionIdList of all the dismiss rules for the given subscription
deleteDELETEalertsSuppressionRuleName, subscriptionIdDelete dismiss alert rule for this subscription.
updateREPLACEalertsSuppressionRuleName, subscriptionIdUpdate existing rule or create new rule if it doesn't exist

SELECT examples

List of all the dismiss rules for the given subscription

SELECT
id,
name,
alert_type,
alertsSuppressionRuleName,
comment,
expiration_date_utc,
last_modified_utc,
reason,
state,
subscriptionId,
suppression_alerts_scope,
type
FROM azure.security.vw_alerts_suppression_rules
WHERE subscriptionId = '{{ subscriptionId }}';

REPLACE example

Replaces all fields in the specified alerts_suppression_rules resource.

/*+ update */
REPLACE azure.security.alerts_suppression_rules
SET
properties = '{{ properties }}'
WHERE
alertsSuppressionRuleName = '{{ alertsSuppressionRuleName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified alerts_suppression_rules resource.

/*+ delete */
DELETE FROM azure.security.alerts_suppression_rules
WHERE alertsSuppressionRuleName = '{{ alertsSuppressionRuleName }}'
AND subscriptionId = '{{ subscriptionId }}';