Skip to content

Commit 9fdea35

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9626e9d of spec repo
1 parent ca3a683 commit 9fdea35

File tree

62 files changed

+761
-361
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+761
-361
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 61 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9338,6 +9338,10 @@ components:
93389338
description: The name of the policy
93399339
example: my_agent_policy
93409340
type: string
9341+
pinned:
9342+
description: Whether the policy is pinned
9343+
example: false
9344+
type: boolean
93419345
policyVersion:
93429346
description: The version of the policy
93439347
example: '1'
@@ -9365,6 +9369,8 @@ components:
93659369
type: integer
93669370
updater:
93679371
$ref: '#/components/schemas/CloudWorkloadSecurityAgentPolicyUpdaterAttributes'
9372+
versions:
9373+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentPolicyVersions'
93689374
type: object
93699375
CloudWorkloadSecurityAgentPolicyCreateAttributes:
93709376
description: Create a new Cloud Workload Security Agent policy
@@ -9511,6 +9517,23 @@ components:
95119517
nullable: true
95129518
type: string
95139519
type: object
9520+
CloudWorkloadSecurityAgentPolicyVersion:
9521+
description: The versions of the policy
9522+
properties:
9523+
Date:
9524+
description: The date and time the version was created
9525+
nullable: true
9526+
type: string
9527+
Name:
9528+
description: The version of the policy
9529+
example: 1.47.0-rc2
9530+
type: string
9531+
type: object
9532+
CloudWorkloadSecurityAgentPolicyVersions:
9533+
description: The versions of the policy
9534+
items:
9535+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentPolicyVersion'
9536+
type: array
95149537
CloudWorkloadSecurityAgentRuleAction:
95159538
description: The action the rule can perform if triggered
95169539
properties:
@@ -9548,23 +9571,32 @@ components:
95489571
description: The set action applied on the scope matching the rule
95499572
properties:
95509573
append:
9551-
description: Whether the value should be appended to the field
9574+
description: Whether the value should be appended to the field.
95529575
type: boolean
9576+
default_value:
9577+
description: The default value of the set action
9578+
type: string
9579+
expression:
9580+
description: The expression of the set action.
9581+
type: string
95539582
field:
95549583
description: The field of the set action
95559584
type: string
9585+
inherited:
9586+
description: Whether the value should be inherited.
9587+
type: boolean
95569588
name:
95579589
description: The name of the set action
95589590
type: string
95599591
scope:
9560-
description: The scope of the set action
9592+
description: The scope of the set action.
95619593
type: string
95629594
size:
9563-
description: The size of the set action
9595+
description: The size of the set action.
95649596
format: int64
95659597
type: integer
95669598
ttl:
9567-
description: The time to live of the set action
9599+
description: The time to live of the set action.
95689600
format: int64
95699601
type: integer
95709602
value:
@@ -9645,6 +9677,10 @@ components:
96459677
items:
96469678
type: string
96479679
type: array
9680+
silent:
9681+
description: Whether the rule is silent.
9682+
example: false
9683+
type: boolean
96489684
updateAuthorUuId:
96499685
description: The ID of the user who updated the rule
96509686
example: e51c9744-d158-11ec-ad23-da7ad0900002
@@ -9672,8 +9708,11 @@ components:
96729708
properties:
96739709
actions:
96749710
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
9711+
agent_version:
9712+
description: Constrain the rule to specific versions of the Datadog Agent.
9713+
type: string
96759714
blocking:
9676-
description: The blocking policies that the rule belongs to
9715+
description: The blocking policies that the rule belongs to.
96779716
items:
96789717
type: string
96799718
type: array
@@ -9682,25 +9721,25 @@ components:
96829721
example: My Agent rule
96839722
type: string
96849723
disabled:
9685-
description: The disabled policies that the rule belongs to
9724+
description: The disabled policies that the rule belongs to.
96869725
items:
96879726
type: string
96889727
type: array
96899728
enabled:
9690-
description: Whether the Agent rule is enabled
9729+
description: Whether the Agent rule is enabled.
96919730
example: true
96929731
type: boolean
96939732
expression:
96949733
description: The SECL expression of the Agent rule.
96959734
example: exec.file.name == "sh"
96969735
type: string
96979736
filters:
9698-
description: The platforms the Agent rule is supported on
9737+
description: The platforms the Agent rule is supported on.
96999738
items:
97009739
type: string
97019740
type: array
97029741
monitoring:
9703-
description: The monitoring policies that the rule belongs to
9742+
description: The monitoring policies that the rule belongs to.
97049743
items:
97059744
type: string
97069745
type: array
@@ -9709,14 +9748,18 @@ components:
97099748
example: my_agent_rule
97109749
type: string
97119750
policy_id:
9712-
description: The ID of the policy where the Agent rule is saved
9751+
description: The ID of the policy where the Agent rule is saved.
97139752
example: a8c8e364-6556-434d-b798-a4c23de29c0b
97149753
type: string
97159754
product_tags:
9716-
description: The list of product tags associated with the rule
9755+
description: The list of product tags associated with the rule.
97179756
items:
97189757
type: string
97199758
type: array
9759+
silent:
9760+
description: Whether the rule is silent.
9761+
example: false
9762+
type: boolean
97209763
required:
97219764
- name
97229765
- expression
@@ -9796,6 +9839,9 @@ components:
97969839
properties:
97979840
actions:
97989841
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
9842+
agent_version:
9843+
description: Constrain the rule to specific versions of the Datadog Agent
9844+
type: string
97999845
blocking:
98009846
description: The blocking policies that the rule belongs to
98019847
items:
@@ -9832,6 +9878,10 @@ components:
98329878
items:
98339879
type: string
98349880
type: array
9881+
silent:
9882+
description: Whether the rule is silent.
9883+
example: false
9884+
type: boolean
98359885
type: object
98369886
CloudWorkloadSecurityAgentRuleUpdateData:
98379887
description: Object for a single Agent rule
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-05-27T10:24:52.127Z"
1+
"2025-10-02T12:40:08.636Z"

cassettes/v2/CSM-Threats_3156990395/Create-a-Workload-Protection-agent-rule-returns-Bad-Request-response_1067572025/recording.har

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "182e29cd0f933ff5c5588f4ce6215a21",
11+
"_id": "6dad69ed8d2de111042566ddde7b1807",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1748341492\"},\"type\":\"policy\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1759408808\"},\"type\":\"policy\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy"
3939
},
4040
"response": {
41-
"bodySize": 454,
41+
"bodySize": 450,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 454,
45-
"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]\"}}}}"
44+
"size": 450,
45+
"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]\"}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2025-05-27T10:24:52.130Z",
61-
"time": 746
60+
"startedDateTime": "2025-10-02T12:40:08.641Z",
61+
"time": 909
6262
},
6363
{
64-
"_id": "d7f17e68d7f3cfd45191d2db96081e72",
64+
"_id": "eed3335bd94cae731f28b63a3ec7ab42",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -85,17 +85,17 @@
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"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\"}}"
88+
"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\"}}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
9292
},
9393
"response": {
94-
"bodySize": 154,
94+
"bodySize": 121,
9595
"content": {
9696
"mimeType": "application/json",
97-
"size": 154,
98-
"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^)\"]}"
97+
"size": 121,
98+
"text": "{\"errors\":[\"input_validation_error(Field 'name' is invalid: the name 'my_agent_rule' is already used by a custom rule)\"]}"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 400,
111111
"statusText": "Bad Request"
112112
},
113-
"startedDateTime": "2025-05-27T10:24:52.883Z",
114-
"time": 501
113+
"startedDateTime": "2025-10-02T12:40:09.557Z",
114+
"time": 643
115115
},
116116
{
117-
"_id": "4d3f95b180cb6f4b566ba489d950e4bf",
117+
"_id": "b0599f765e6716c2e4d05128d38492b1",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -131,7 +131,7 @@
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/wqi-kze-rt7"
134+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/9lu-jcj-cfk"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -152,8 +152,8 @@
152152
"status": 204,
153153
"statusText": "No Content"
154154
},
155-
"startedDateTime": "2025-05-27T10:24:53.393Z",
156-
"time": 668
155+
"startedDateTime": "2025-10-02T12:40:10.205Z",
156+
"time": 732
157157
}
158158
],
159159
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-05-27T10:24:54.068Z"
1+
"2025-10-02T12:40:10.942Z"

0 commit comments

Comments
 (0)