resource_evaluation_filters
Creates, updates, deletes, gets or lists a resource_evaluation_filters resource.
Overview
| Name | resource_evaluation_filters |
| Type | Resource |
| Id | datadog.security.resource_evaluation_filters |
Fields
The following fields are returned by SELECT queries:
- get_resource_evaluation_filters
| Name | Datatype | Description |
|---|---|---|
id | string | The data id. (example: csm_resource_filter) |
attributes | object | Attributes of a resource filter. |
type | string | Constant string to identify the request type. (csm_resource_filter) (example: csm_resource_filter) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_resource_evaluation_filters | select | cloud_provider, account_id, skip_cache | List resource filters. | |
update_resource_evaluation_filters | replace | data | Update 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.
| Name | Datatype | Description |
|---|---|---|
site | string | The 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_id | string | Filter resource filters by cloud provider account ID. This parameter is only valid when provider is specified. |
cloud_provider | string | Filter resource filters by cloud provider (e.g. aws, gcp, azure). |
skip_cache | boolean | Skip cache for resource filters. |
SELECT examples
- get_resource_evaluation_filters
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_evaluation_filters
Update resource filters.
REPLACE datadog.security.resource_evaluation_filters
SET
data = '{{ data }}'
WHERE
data = '{{ data }}' --required
RETURNING
data;