csm_threats_agent_rules
Creates, updates, deletes, gets or lists a csm_threats_agent_rules
resource.
Overview
Name | csm_threats_agent_rules |
Type | Resource |
Id | datadog.remote_config.csm_threats_agent_rules |
Fields
The following fields are returned by SELECT
queries:
- get_csmthreats_agent_rule
- list_csmthreats_agent_rules
Name | Datatype | Description |
---|---|---|
id | string | The ID of the Agent rule (example: 3dd-0uc-h1s) |
attributes | object | A Cloud Workload Security Agent rule returned by the API |
type | string | The type of the resource, must always be agent_rule (default: agent_rule, example: agent_rule) |
Name | Datatype | Description |
---|---|---|
id | string | The ID of the Agent rule (example: 3dd-0uc-h1s) |
attributes | object | A Cloud Workload Security Agent rule returned by the API |
type | string | The type of the resource, must always be agent_rule (default: agent_rule, example: agent_rule) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_csmthreats_agent_rule | select | agent_rule_id , region | policy_id | Get the details of a specific Workload Protection agent rule. Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below. |
list_csmthreats_agent_rules | select | region | policy_id | Get the list of Workload Protection agent rules. Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below. |
create_csmthreats_agent_rule | insert | region , data__data | Create a new Workload Protection agent rule with the given parameters. Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below. | |
update_csmthreats_agent_rule | update | agent_rule_id , region , data__data | policy_id | Update a specific Workload Protection Agent rule. Returns the agent rule object when the request is successful. Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below. |
delete_csmthreats_agent_rule | delete | agent_rule_id , region | policy_id | Delete a specific Workload Protection agent rule. Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below. |
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 |
---|---|---|
agent_rule_id | string | The ID of the Agent rule (example: 3b5-v82-ns6) |
region | string | (default: datadoghq.com) |
policy_id | string | The ID of the Agent policy (example: 6517fcc1-cec7-4394-a655-8d6e9d085255) |
SELECT
examples
- get_csmthreats_agent_rule
- list_csmthreats_agent_rules
Get the details of a specific Workload Protection agent rule.
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
SELECT
id,
attributes,
type
FROM datadog.remote_config.csm_threats_agent_rules
WHERE agent_rule_id = '{{ agent_rule_id }}' -- required
AND region = '{{ region }}' -- required
AND policy_id = '{{ policy_id }}'
;
Get the list of Workload Protection agent rules.
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
SELECT
id,
attributes,
type
FROM datadog.remote_config.csm_threats_agent_rules
WHERE region = '{{ region }}' -- required
AND policy_id = '{{ policy_id }}'
;
INSERT
examples
- create_csmthreats_agent_rule
- Manifest
Create a new Workload Protection agent rule with the given parameters.
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
INSERT INTO datadog.remote_config.csm_threats_agent_rules (
data__data,
region
)
SELECT
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: csm_threats_agent_rules
props:
- name: region
value: string
description: Required parameter for the csm_threats_agent_rules resource.
- name: data
value: object
description: |
Object for a single Agent rule
UPDATE
examples
- update_csmthreats_agent_rule
Update a specific Workload Protection Agent rule.
Returns the agent rule object when the request is successful.
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
UPDATE datadog.remote_config.csm_threats_agent_rules
SET
data__data = '{{ data }}'
WHERE
agent_rule_id = '{{ agent_rule_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
AND policy_id = '{{ policy_id}}'
RETURNING
data;
DELETE
examples
- delete_csmthreats_agent_rule
Delete a specific Workload Protection agent rule.
Note: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below.
DELETE FROM datadog.remote_config.csm_threats_agent_rules
WHERE agent_rule_id = '{{ agent_rule_id }}' --required
AND region = '{{ region }}' --required
AND policy_id = '{{ policy_id }}'
;