Skip to content

Commit 5396442

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit cd862d9 of spec repo
1 parent 61b34cc commit 5396442

File tree

62 files changed

+760
-402
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

+760
-402
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 61 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9318,6 +9318,10 @@ components:
93189318
description: The name of the policy
93199319
example: my_agent_policy
93209320
type: string
9321+
pinned:
9322+
description: Whether the policy is pinned
9323+
example: false
9324+
type: boolean
93219325
policyVersion:
93229326
description: The version of the policy
93239327
example: '1'
@@ -9345,6 +9349,8 @@ components:
93459349
type: integer
93469350
updater:
93479351
$ref: '#/components/schemas/CloudWorkloadSecurityAgentPolicyUpdaterAttributes'
9352+
versions:
9353+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentPolicyVersions'
93489354
type: object
93499355
CloudWorkloadSecurityAgentPolicyCreateAttributes:
93509356
description: Create a new Cloud Workload Security Agent policy
@@ -9491,6 +9497,23 @@ components:
94919497
nullable: true
94929498
type: string
94939499
type: object
9500+
CloudWorkloadSecurityAgentPolicyVersion:
9501+
description: The versions of the policy
9502+
properties:
9503+
Date:
9504+
description: The date and time the version was created
9505+
nullable: true
9506+
type: string
9507+
Name:
9508+
description: The version of the policy
9509+
example: 1.47.0-rc2
9510+
type: string
9511+
type: object
9512+
CloudWorkloadSecurityAgentPolicyVersions:
9513+
description: The versions of the policy
9514+
items:
9515+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentPolicyVersion'
9516+
type: array
94949517
CloudWorkloadSecurityAgentRuleAction:
94959518
description: The action the rule can perform if triggered
94969519
properties:
@@ -9528,23 +9551,32 @@ components:
95289551
description: The set action applied on the scope matching the rule
95299552
properties:
95309553
append:
9531-
description: Whether the value should be appended to the field
9554+
description: Whether the value should be appended to the field.
95329555
type: boolean
9556+
default_value:
9557+
description: The default value of the set action
9558+
type: string
9559+
expression:
9560+
description: The expression of the set action.
9561+
type: string
95339562
field:
95349563
description: The field of the set action
95359564
type: string
9565+
inherited:
9566+
description: Whether the value should be inherited.
9567+
type: boolean
95369568
name:
95379569
description: The name of the set action
95389570
type: string
95399571
scope:
9540-
description: The scope of the set action
9572+
description: The scope of the set action.
95419573
type: string
95429574
size:
9543-
description: The size of the set action
9575+
description: The size of the set action.
95449576
format: int64
95459577
type: integer
95469578
ttl:
9547-
description: The time to live of the set action
9579+
description: The time to live of the set action.
95489580
format: int64
95499581
type: integer
95509582
value:
@@ -9625,6 +9657,10 @@ components:
96259657
items:
96269658
type: string
96279659
type: array
9660+
silent:
9661+
description: Whether the rule is silent.
9662+
example: false
9663+
type: boolean
96289664
updateAuthorUuId:
96299665
description: The ID of the user who updated the rule
96309666
example: e51c9744-d158-11ec-ad23-da7ad0900002
@@ -9652,8 +9688,11 @@ components:
96529688
properties:
96539689
actions:
96549690
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
9691+
agent_version:
9692+
description: Constrain the rule to specific versions of the Datadog Agent.
9693+
type: string
96559694
blocking:
9656-
description: The blocking policies that the rule belongs to
9695+
description: The blocking policies that the rule belongs to.
96579696
items:
96589697
type: string
96599698
type: array
@@ -9662,25 +9701,25 @@ components:
96629701
example: My Agent rule
96639702
type: string
96649703
disabled:
9665-
description: The disabled policies that the rule belongs to
9704+
description: The disabled policies that the rule belongs to.
96669705
items:
96679706
type: string
96689707
type: array
96699708
enabled:
9670-
description: Whether the Agent rule is enabled
9709+
description: Whether the Agent rule is enabled.
96719710
example: true
96729711
type: boolean
96739712
expression:
96749713
description: The SECL expression of the Agent rule.
96759714
example: exec.file.name == "sh"
96769715
type: string
96779716
filters:
9678-
description: The platforms the Agent rule is supported on
9717+
description: The platforms the Agent rule is supported on.
96799718
items:
96809719
type: string
96819720
type: array
96829721
monitoring:
9683-
description: The monitoring policies that the rule belongs to
9722+
description: The monitoring policies that the rule belongs to.
96849723
items:
96859724
type: string
96869725
type: array
@@ -9689,14 +9728,18 @@ components:
96899728
example: my_agent_rule
96909729
type: string
96919730
policy_id:
9692-
description: The ID of the policy where the Agent rule is saved
9731+
description: The ID of the policy where the Agent rule is saved.
96939732
example: a8c8e364-6556-434d-b798-a4c23de29c0b
96949733
type: string
96959734
product_tags:
9696-
description: The list of product tags associated with the rule
9735+
description: The list of product tags associated with the rule.
96979736
items:
96989737
type: string
96999738
type: array
9739+
silent:
9740+
description: Whether the rule is silent.
9741+
example: false
9742+
type: boolean
97009743
required:
97019744
- name
97029745
- expression
@@ -9776,6 +9819,9 @@ components:
97769819
properties:
97779820
actions:
97789821
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
9822+
agent_version:
9823+
description: Constrain the rule to specific versions of the Datadog Agent
9824+
type: string
97799825
blocking:
97809826
description: The blocking policies that the rule belongs to
97819827
items:
@@ -9812,6 +9858,10 @@ components:
98129858
items:
98139859
type: string
98149860
type: array
9861+
silent:
9862+
description: Whether the rule is silent.
9863+
example: false
9864+
type: boolean
98159865
type: object
98169866
CloudWorkloadSecurityAgentRuleUpdateData:
98179867
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-02T11:22:11.637Z"

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": "e11a6e25028e416fef1f3ec850362162",
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\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1759404131\"},\"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\":\"3xk-hiu-rmd\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1759404131\",\"pinned\":false,\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1759404131996,\"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-02T11:22:11.643Z",
61+
"time": 828
6262
},
6363
{
64-
"_id": "d7f17e68d7f3cfd45191d2db96081e72",
64+
"_id": "7957b84e8d7fef6e8bff304c46d1c414",
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\":\"3xk-hiu-rmd\",\"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-02T11:22:12.478Z",
114+
"time": 510
115115
},
116116
{
117-
"_id": "4d3f95b180cb6f4b566ba489d950e4bf",
117+
"_id": "a7b857c321fbf6e64934585cdf253d97",
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/3xk-hiu-rmd"
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-02T11:22:12.994Z",
156+
"time": 966
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-02T11:22:13.965Z"

0 commit comments

Comments
 (0)