PATCH https://api.ap1.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}https://api.datadoghq.eu/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}https://api.ddog-gov.com/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}https://api.us3.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}https://api.us5.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/{agent_rule_id}
Overview
Update a specific Cloud Security Management Threats Agent rule.
Returns the Agent rule object when the request is successful.
Arguments
Path Parameters
The ID of the Agent rule.
Request
Body Data (required)
New definition of the Agent rule.
Expand All
Object for a single Agent rule.
Update an existing Cloud Workload Security Agent rule.
The description of the Agent rule.
Whether the Agent rule is enabled.
The SECL expression of the Agent rule.
The ID of the agent rule.
The type of the resource. The value should always be agent_rule
.
Allowed enum values: agent_rule
default: agent_rule
{
"data": {
"attributes": {
"description": "Test Agent rule",
"enabled": true,
"expression": "exec.file.name == \"sh\""
},
"type": "agent_rule",