Create a Cloud Workload Security Agent rule
POST {{baseUrl}}/api/v2/security_monitoring/cloud_workload_security/agent_rules
Create a new Agent rule with the given parameters.
Request Body
{"data"=>{"attributes"=>{"name"=>"<string>", "expression"=>"<string>", "description"=>"<string>", "enabled"=>"<boolean>"}, "type"=>"agent_rule"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"attributes":{"agentConstraint":"\u003cstring\u003e","category":"\u003cstring\u003e","creationAuthorUuId":"\u003cstring\u003e","creationDate":"\u003clong\u003e","creator":{"handle":"\u003cstring\u003e","name":"\u003cstring\u003e"},"defaultRule":"\u003cboolean\u003e","description":"\u003cstring\u003e","enabled":"\u003cboolean\u003e","expression":"\u003cstring\u003e","name":"\u003cstring\u003e","updateAuthorUuId":"\u003cstring\u003e","updateDate":"\u003clong\u003e","updatedAt":"\u003clong\u003e","updater":{"handle":"\u003cstring\u003e","name":"\u003cstring\u003e"},"version":"\u003clong\u003e"},"id":"\u003cstring\u003e","type":"agent_rule"}}