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. (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 | region | cloud_provider , account_id , skip_cache | List resource filters. |
update_resource_evaluation_filters | replace | region , data__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 |
---|---|---|
region | string | (default: datadoghq.com) |
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 region = '{{ region }}' -- required
AND 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 = '{{ data }}'
WHERE
region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;