Update a Cloud Workload Security Agent rule
PATCH {{baseUrl}}/api/v2/security_monitoring/cloud_workload_security/agent_rules/:agent_rule_id
Update a specific Agent rule. Returns the Agent rule object when the request is successful.
Request Body
{"data"=>{"attributes"=>{"description"=>"My Agent rule", "enabled"=>true, "expression"=>"exec.file.name == \\\"sh\\\""}, "type"=>"agent_rule", "id"=>"3dd-0uc-h1s"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"attributes":{"actions":[{"filter":"ut elit","kill":{"signal":"voluptate aliqua quis nisi"}},{"filter":"fugiat Duis","kill":{"signal":"enim cupidatat cillum"}}],"agentConstraint":"nulla Lorem cillum incididunt occaecat","category":"Process Activity","creationAuthorUuId":"e51c9744-d158-11ec-ad23-da7ad0900002","creationDate":1624366480320,"creator":{"handle":"datadog.user@example.com","name":"Datadog User"},"defaultRule":false,"description":"My Agent rule","enabled":true,"expression":"exec.file.name == \\\"sh\\\"","filters":["elit reprehenderit","dolore fugia"],"name":"my_agent_rule","updateAuthorUuId":"e51c9744-d158-11ec-ad23-da7ad0900002","updateDate":1624366480320,"updatedAt":1624366480320,"updater":{"handle":"datadog.user@example.com","name":"Datadog User"},"version":23},"id":"3dd-0uc-h1s","type":"agent_rule"}}