Skip to main content

resource_evaluation_filters

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

Overview​

Nameresource_evaluation_filters
TypeResource
Iddatadog.security.resource_evaluation_filters

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe data id. (example: csm_resource_filter)
attributesobjectAttributes of a resource filter.
typestringConstant string to identify the request type. (csm_resource_filter) (example: csm_resource_filter)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_evaluation_filtersselectcloud_provider, account_id, skip_cacheList resource filters.
update_resource_evaluation_filtersreplacedataUpdate resource filters.

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
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.
account_idstringFilter resource filters by cloud provider account ID. This parameter is only valid when provider is specified.
cloud_providerstringFilter resource filters by cloud provider (e.g. aws, gcp, azure).
skip_cachebooleanSkip cache for resource filters.

SELECT examples​

List resource filters.

SELECT
id,
attributes,
type
FROM datadog.security.resource_evaluation_filters
WHERE cloud_provider = '{{ cloud_provider }}'
AND account_id = '{{ account_id }}'
AND skip_cache = '{{ skip_cache }}'
;

REPLACE examples​

Update resource filters.

REPLACE datadog.security.resource_evaluation_filters
SET
data = '{{ data }}'
WHERE
data = '{{ data }}' --required
RETURNING
data;