Skip to content

Commit 6940220

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5c99c1f of spec repo
1 parent f40b6db commit 6940220

File tree

57 files changed

+624
-398
lines changed

Some content is hidden

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

57 files changed

+624
-398
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9419,23 +9419,32 @@ components:
94199419
description: The set action applied on the scope matching the rule
94209420
properties:
94219421
append:
9422-
description: Whether the value should be appended to the field
9422+
description: Whether the value should be appended to the field.
94239423
type: boolean
9424+
default_value:
9425+
description: The default value of the set action
9426+
type: string
9427+
expression:
9428+
description: The expression of the set action.
9429+
type: string
94249430
field:
94259431
description: The field of the set action
94269432
type: string
9433+
inherited:
9434+
description: Whether the value should be inherited.
9435+
type: boolean
94279436
name:
94289437
description: The name of the set action
94299438
type: string
94309439
scope:
9431-
description: The scope of the set action
9440+
description: The scope of the set action.
94329441
type: string
94339442
size:
9434-
description: The size of the set action
9443+
description: The size of the set action.
94359444
format: int64
94369445
type: integer
94379446
ttl:
9438-
description: The time to live of the set action
9447+
description: The time to live of the set action.
94399448
format: int64
94409449
type: integer
94419450
value:
@@ -9543,8 +9552,11 @@ components:
95439552
properties:
95449553
actions:
95459554
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
9555+
agent_version:
9556+
description: Constrain the rule to specific versions of the Datadog Agent.
9557+
type: string
95469558
blocking:
9547-
description: The blocking policies that the rule belongs to
9559+
description: The blocking policies that the rule belongs to.
95489560
items:
95499561
type: string
95509562
type: array
@@ -9553,25 +9565,25 @@ components:
95539565
example: My Agent rule
95549566
type: string
95559567
disabled:
9556-
description: The disabled policies that the rule belongs to
9568+
description: The disabled policies that the rule belongs to.
95579569
items:
95589570
type: string
95599571
type: array
95609572
enabled:
9561-
description: Whether the Agent rule is enabled
9573+
description: Whether the Agent rule is enabled.
95629574
example: true
95639575
type: boolean
95649576
expression:
95659577
description: The SECL expression of the Agent rule.
95669578
example: exec.file.name == "sh"
95679579
type: string
95689580
filters:
9569-
description: The platforms the Agent rule is supported on
9581+
description: The platforms the Agent rule is supported on.
95709582
items:
95719583
type: string
95729584
type: array
95739585
monitoring:
9574-
description: The monitoring policies that the rule belongs to
9586+
description: The monitoring policies that the rule belongs to.
95759587
items:
95769588
type: string
95779589
type: array
@@ -9580,11 +9592,11 @@ components:
95809592
example: my_agent_rule
95819593
type: string
95829594
policy_id:
9583-
description: The ID of the policy where the Agent rule is saved
9595+
description: The ID of the policy where the Agent rule is saved.
95849596
example: a8c8e364-6556-434d-b798-a4c23de29c0b
95859597
type: string
95869598
product_tags:
9587-
description: The list of product tags associated with the rule
9599+
description: The list of product tags associated with the rule.
95889600
items:
95899601
type: string
95909602
type: array
@@ -9667,6 +9679,9 @@ components:
96679679
properties:
96689680
actions:
96699681
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
9682+
agent_version:
9683+
description: Constrain the rule to specific versions of the Datadog Agent
9684+
type: string
96709685
blocking:
96719686
description: The blocking policies that the rule belongs to
96729687
items:
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-09-30T09:09:43.905Z"

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": "9422a48ee00ef0d1677f0757aa81202d",
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\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1759223383\"},\"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": 435,
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": 435,
45+
"text": "{\"data\":{\"id\":\"nz6-0zw-ffq\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1759223383\",\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1759223384278,\"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-09-30T09:09:43.909Z",
61+
"time": 893
6262
},
6363
{
64-
"_id": "d7f17e68d7f3cfd45191d2db96081e72",
64+
"_id": "2b86cceffb48583a9c33d930f0090483",
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\":\"nz6-0zw-ffq\",\"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-09-30T09:09:44.806Z",
114+
"time": 350
115115
},
116116
{
117-
"_id": "4d3f95b180cb6f4b566ba489d950e4bf",
117+
"_id": "f74833c23186b8a0eb97aa5d7f14cacc",
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/nz6-0zw-ffq"
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-09-30T09:09:45.161Z",
156+
"time": 763
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-09-30T09:09:45.928Z"

cassettes/v2/CSM-Threats_3156990395/Create-a-Workload-Protection-agent-rule-returns-OK-response_2698696373/recording.har

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "cbe9253613f5d3fb32b237404879c5e9",
11+
"_id": "6725f8088af968a8af56fe66473ea476",
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\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1748341494\"},\"type\":\"policy\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1759223385\"},\"type\":\"policy\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy"
3939
},
4040
"response": {
41-
"bodySize": 446,
41+
"bodySize": 427,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 446,
45-
"text": "{\"data\":{\"id\":\"zkg-owo-mcp\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTags\":[\"env:staging\"],\"monitoringRulesCount\":225,\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1748341494\",\"policyVersion\":\"1\",\"priority\":1000000011,\"ruleCount\":226,\"updateDate\":1748341494354,\"updater\":{\"name\":\"frog\",\"handle\":\"[email protected]\"}}}}"
44+
"size": 427,
45+
"text": "{\"data\":{\"id\":\"vo3-qkh-mie\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1759223385\",\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1759223386289,\"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:54.069Z",
61-
"time": 610
60+
"startedDateTime": "2025-09-30T09:09:45.930Z",
61+
"time": 748
6262
},
6363
{
64-
"_id": "f913fcf7b123725236248fbbaf89e45c",
64+
"_id": "2f7a8bb690fb067fa71f9090172261f1",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -85,7 +85,7 @@
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1748341494\",\"policy_id\":\"zkg-owo-mcp\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
88+
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1759223385\",\"policy_id\":\"vo3-qkh-mie\",\"product_tags\":[]},\"type\":\"agent_rule\"}}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
@@ -95,7 +95,7 @@
9595
"content": {
9696
"mimeType": "application/json",
9797
"size": 519,
98-
"text": "{\"data\":{\"id\":\"ymx-atn-xux\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1748341495064,\"creator\":{\"name\":\"frog\",\"handle\":\"[email protected]\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"monitoring\":[\"zkg-owo-mcp\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1748341494\",\"product_tags\":[],\"updateDate\":1748341495064,\"updater\":{\"name\":\"frog\",\"handle\":\"[email protected]\"}}}}"
98+
"text": "{\"data\":{\"id\":\"gvz-2nl-fzc\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1759223387056,\"creator\":{\"name\":\"frog\",\"handle\":\"[email protected]\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"monitoring\":[\"vo3-qkh-mie\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1759223385\",\"product_tags\":[],\"updateDate\":1759223387056,\"updater\":{\"name\":\"frog\",\"handle\":\"[email protected]\"}}}}"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 200,
111111
"statusText": "OK"
112112
},
113-
"startedDateTime": "2025-05-27T10:24:54.683Z",
114-
"time": 968
113+
"startedDateTime": "2025-09-30T09:09:46.681Z",
114+
"time": 1145
115115
},
116116
{
117-
"_id": "151f86620345d9c8e93c7400bcca35b2",
117+
"_id": "32bfc92d394b2e15b6e76ec4c1b9f7f9",
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/agent_rules/ymx-atn-xux"
134+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules/gvz-2nl-fzc"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -152,11 +152,11 @@
152152
"status": 204,
153153
"statusText": "No Content"
154154
},
155-
"startedDateTime": "2025-05-27T10:24:55.659Z",
156-
"time": 701
155+
"startedDateTime": "2025-09-30T09:09:47.830Z",
156+
"time": 1384
157157
},
158158
{
159-
"_id": "7a99bac7e0baed2df14d56b80bf32a29",
159+
"_id": "f7096811e139f93ebced9b937bf90253",
160160
"_order": 0,
161161
"cache": {},
162162
"request": {
@@ -173,7 +173,7 @@
173173
"httpVersion": "HTTP/1.1",
174174
"method": "DELETE",
175175
"queryString": [],
176-
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/zkg-owo-mcp"
176+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/vo3-qkh-mie"
177177
},
178178
"response": {
179179
"bodySize": 0,
@@ -194,8 +194,8 @@
194194
"status": 204,
195195
"statusText": "No Content"
196196
},
197-
"startedDateTime": "2025-05-27T10:24:56.366Z",
198-
"time": 676
197+
"startedDateTime": "2025-09-30T09:09:49.217Z",
198+
"time": 857
199199
}
200200
],
201201
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-06-13T15:16:58.034Z"
1+
"2025-09-30T09:09:50.082Z"

0 commit comments

Comments
 (0)