Skip to main content

waf_exclusion_filters

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

Overview

Namewaf_exclusion_filters
TypeResource
Iddatadog.remote_config.waf_exclusion_filters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the WAF exclusion filter. (example: 3dd-0uc-h1s)
attributesobjectAttributes describing a WAF exclusion filter.
typestringType of the resource. The value should always be exclusion_filter. (exclusion_filter) (default: exclusion_filter, example: exclusion_filter)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_application_security_waf_exclusion_filterselectexclusion_filter_idRetrieve a specific WAF exclusion filter using its identifier.
list_application_security_waf_exclusion_filtersselectRetrieve a list of WAF exclusion filters.
create_application_security_waf_exclusion_filterinsertdataCreate a new WAF exclusion filter with the given parameters.<br /><br />A request matched by an exclusion filter will be ignored by the Application Security WAF product.<br />Go to https:​//app.datadoghq.com/security/appsec/passlist to review existing exclusion filters (also called passlist entries).
update_application_security_waf_exclusion_filterreplaceexclusion_filter_id, dataUpdate a specific WAF exclusion filter using its identifier.<br />Returns the exclusion filter object when the request is successful.
delete_application_security_waf_exclusion_filterdeleteexclusion_filter_idDelete a specific WAF exclusion filter using its identifier.

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
exclusion_filter_idstringThe identifier of the WAF exclusion filter. (example: 3b5-v82-ns6)
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

Retrieve a specific WAF exclusion filter using its identifier.

SELECT
id,
attributes,
type
FROM datadog.remote_config.waf_exclusion_filters
WHERE exclusion_filter_id = '{{ exclusion_filter_id }}' -- required
;

INSERT examples

Create a new WAF exclusion filter with the given parameters.<br /><br />A request matched by an exclusion filter will be ignored by the Application Security WAF product.<br />Go to https:​//app.datadoghq.com/security/appsec/passlist to review existing exclusion filters (also called passlist entries).

INSERT INTO datadog.remote_config.waf_exclusion_filters (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

REPLACE examples

Update a specific WAF exclusion filter using its identifier.<br />Returns the exclusion filter object when the request is successful.

REPLACE datadog.remote_config.waf_exclusion_filters
SET
data = '{{ data }}'
WHERE
exclusion_filter_id = '{{ exclusion_filter_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete a specific WAF exclusion filter using its identifier.

DELETE FROM datadog.remote_config.waf_exclusion_filters
WHERE exclusion_filter_id = '{{ exclusion_filter_id }}' --required
;