Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 61 additions & 11 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9318,6 +9318,10 @@ components:
description: The name of the policy
example: my_agent_policy
type: string
pinned:
description: Whether the policy is pinned
example: false
type: boolean
policyVersion:
description: The version of the policy
example: '1'
Expand Down Expand Up @@ -9345,6 +9349,8 @@ components:
type: integer
updater:
$ref: '#/components/schemas/CloudWorkloadSecurityAgentPolicyUpdaterAttributes'
versions:
$ref: '#/components/schemas/CloudWorkloadSecurityAgentPolicyVersions'
type: object
CloudWorkloadSecurityAgentPolicyCreateAttributes:
description: Create a new Cloud Workload Security Agent policy
Expand Down Expand Up @@ -9491,6 +9497,23 @@ components:
nullable: true
type: string
type: object
CloudWorkloadSecurityAgentPolicyVersion:
description: The versions of the policy
properties:
Date:
description: The date and time the version was created
nullable: true
type: string
Name:
description: The version of the policy
example: 1.47.0-rc2
type: string
type: object
CloudWorkloadSecurityAgentPolicyVersions:
description: The versions of the policy
items:
$ref: '#/components/schemas/CloudWorkloadSecurityAgentPolicyVersion'
type: array
CloudWorkloadSecurityAgentRuleAction:
description: The action the rule can perform if triggered
properties:
Expand Down Expand Up @@ -9528,23 +9551,32 @@ components:
description: The set action applied on the scope matching the rule
properties:
append:
description: Whether the value should be appended to the field
description: Whether the value should be appended to the field.
type: boolean
default_value:
description: The default value of the set action
type: string
expression:
description: The expression of the set action.
type: string
field:
description: The field of the set action
type: string
inherited:
description: Whether the value should be inherited.
type: boolean
name:
description: The name of the set action
type: string
scope:
description: The scope of the set action
description: The scope of the set action.
type: string
size:
description: The size of the set action
description: The size of the set action.
format: int64
type: integer
ttl:
description: The time to live of the set action
description: The time to live of the set action.
format: int64
type: integer
value:
Expand Down Expand Up @@ -9625,6 +9657,10 @@ components:
items:
type: string
type: array
silent:
description: Whether the rule is silent.
example: false
type: boolean
updateAuthorUuId:
description: The ID of the user who updated the rule
example: e51c9744-d158-11ec-ad23-da7ad0900002
Expand Down Expand Up @@ -9652,8 +9688,11 @@ components:
properties:
actions:
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
agent_version:
description: Constrain the rule to specific versions of the Datadog Agent.
type: string
blocking:
description: The blocking policies that the rule belongs to
description: The blocking policies that the rule belongs to.
items:
type: string
type: array
Expand All @@ -9662,25 +9701,25 @@ components:
example: My Agent rule
type: string
disabled:
description: The disabled policies that the rule belongs to
description: The disabled policies that the rule belongs to.
items:
type: string
type: array
enabled:
description: Whether the Agent rule is enabled
description: Whether the Agent rule is enabled.
example: true
type: boolean
expression:
description: The SECL expression of the Agent rule.
example: exec.file.name == "sh"
type: string
filters:
description: The platforms the Agent rule is supported on
description: The platforms the Agent rule is supported on.
items:
type: string
type: array
monitoring:
description: The monitoring policies that the rule belongs to
description: The monitoring policies that the rule belongs to.
items:
type: string
type: array
Expand All @@ -9689,14 +9728,18 @@ components:
example: my_agent_rule
type: string
policy_id:
description: The ID of the policy where the Agent rule is saved
description: The ID of the policy where the Agent rule is saved.
example: a8c8e364-6556-434d-b798-a4c23de29c0b
type: string
product_tags:
description: The list of product tags associated with the rule
description: The list of product tags associated with the rule.
items:
type: string
type: array
silent:
description: Whether the rule is silent.
example: false
type: boolean
required:
- name
- expression
Expand Down Expand Up @@ -9776,6 +9819,9 @@ components:
properties:
actions:
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
agent_version:
description: Constrain the rule to specific versions of the Datadog Agent
type: string
blocking:
description: The blocking policies that the rule belongs to
items:
Expand Down Expand Up @@ -9812,6 +9858,10 @@ components:
items:
type: string
type: array
silent:
description: Whether the rule is silent.
example: false
type: boolean
type: object
CloudWorkloadSecurityAgentRuleUpdateData:
description: Object for a single Agent rule
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2025-05-27T10:24:52.127Z"
"2025-10-02T12:40:08.636Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"entries": [
{
"_id": "182e29cd0f933ff5c5588f4ce6215a21",
"_id": "6dad69ed8d2de111042566ddde7b1807",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -32,17 +32,17 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1748341492\"},\"type\":\"policy\"}}"
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1759408808\"},\"type\":\"policy\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy"
},
"response": {
"bodySize": 454,
"bodySize": 450,
"content": {
"mimeType": "application/json",
"size": 454,
"text": "{\"data\":{\"id\":\"wqi-kze-rt7\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTags\":[\"env:staging\"],\"monitoringRulesCount\":225,\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1748341492\",\"policyVersion\":\"1\",\"priority\":1000000011,\"ruleCount\":226,\"updateDate\":1748341492528,\"updater\":{\"name\":\"frog\",\"handle\":\"[email protected]\"}}}}"
"size": 450,
"text": "{\"data\":{\"id\":\"9lu-jcj-cfk\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1759408808\",\"pinned\":false,\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1759408809020,\"updater\":{\"name\":\"frog\",\"handle\":\"[email protected]\"}}}}"
},
"cookies": [],
"headers": [
Expand All @@ -57,11 +57,11 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2025-05-27T10:24:52.130Z",
"time": 746
"startedDateTime": "2025-10-02T12:40:08.641Z",
"time": 909
},
{
"_id": "d7f17e68d7f3cfd45191d2db96081e72",
"_id": "eed3335bd94cae731f28b63a3ec7ab42",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -85,17 +85,17 @@
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name\",\"filters\":[],\"name\":\"my_agent_rule\",\"policy_id\":\"wqi-kze-rt7\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name\",\"filters\":[],\"name\":\"my_agent_rule\",\"policy_id\":\"9lu-jcj-cfk\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
},
"response": {
"bodySize": 154,
"bodySize": 121,
"content": {
"mimeType": "application/json",
"size": 154,
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `my_agent_rule` error: rule syntax error: bool expected: 1:1: exec.file.name\\n^)\"]}"
"size": 121,
"text": "{\"errors\":[\"input_validation_error(Field 'name' is invalid: the name 'my_agent_rule' is already used by a custom rule)\"]}"
},
"cookies": [],
"headers": [
Expand All @@ -110,11 +110,11 @@
"status": 400,
"statusText": "Bad Request"
},
"startedDateTime": "2025-05-27T10:24:52.883Z",
"time": 501
"startedDateTime": "2025-10-02T12:40:09.557Z",
"time": 643
},
{
"_id": "4d3f95b180cb6f4b566ba489d950e4bf",
"_id": "b0599f765e6716c2e4d05128d38492b1",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -131,7 +131,7 @@
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/wqi-kze-rt7"
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/9lu-jcj-cfk"
},
"response": {
"bodySize": 0,
Expand All @@ -152,8 +152,8 @@
"status": 204,
"statusText": "No Content"
},
"startedDateTime": "2025-05-27T10:24:53.393Z",
"time": 668
"startedDateTime": "2025-10-02T12:40:10.205Z",
"time": 732
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2025-05-27T10:24:54.068Z"
"2025-10-02T12:40:10.942Z"
Loading
Loading