Skip to main content

suppressions_affecting_rule

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

Overview

Namesuppressions_affecting_rule
TypeResource
Iddatadog.security.suppressions_affecting_rule

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the suppression rule. (example: 3dd-0uc-h1s)
attributesobjectThe attributes of the suppression rule.
typestringThe type of the resource. The value should always be suppressions. (suppressions) (default: suppressions, example: suppressions)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_suppressions_affecting_ruleselectrule_idGet the list of suppressions that affect a specific existing rule by its ID.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
rule_idstringThe ID of the rule.
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

Get the list of suppressions that affect a specific existing rule by its ID.

SELECT
id,
attributes,
type
FROM datadog.security.suppressions_affecting_rule
WHERE rule_id = '{{ rule_id }}' -- required
;