alerts_suppression_rules
Creates, updates, deletes, gets or lists a alerts_suppression_rules
resource.
Overview
Name | alerts_suppression_rules |
Type | Resource |
Id | azure.security.alerts_suppression_rules |
Fields
- vw_alerts_suppression_rules
- alerts_suppression_rules
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
alert_type | text | field from the properties object |
alertsSuppressionRuleName | text | field from the properties object |
comment | text | field from the properties object |
expiration_date_utc | text | field from the properties object |
last_modified_utc | text | field from the properties object |
reason | text | field from the properties object |
state | text | field from the properties object |
subscriptionId | text | field from the properties object |
suppression_alerts_scope | text | field from the properties object |
type | text | Resource type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
properties | object | describes AlertsSuppressionRule properties |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | alertsSuppressionRuleName, subscriptionId | Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription |
list | SELECT | subscriptionId | List of all the dismiss rules for the given subscription |
delete | DELETE | alertsSuppressionRuleName, subscriptionId | Delete dismiss alert rule for this subscription. |
update | REPLACE | alertsSuppressionRuleName, subscriptionId | Update existing rule or create new rule if it doesn't exist |
SELECT
examples
List of all the dismiss rules for the given subscription
- vw_alerts_suppression_rules
- alerts_suppression_rules
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 }}';
SELECT
id,
name,
properties,
type
FROM azure.security.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 }}';