Skip to content

Commit 1845144

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8a86770 of spec repo
1 parent fa4fe80 commit 1845144

File tree

62 files changed

+728
-363
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

+728
-363
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 42 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'
@@ -9528,23 +9532,32 @@ components:
95289532
description: The set action applied on the scope matching the rule
95299533
properties:
95309534
append:
9531-
description: Whether the value should be appended to the field
9535+
description: Whether the value should be appended to the field.
95329536
type: boolean
9537+
default_value:
9538+
description: The default value of the set action
9539+
type: string
9540+
expression:
9541+
description: The expression of the set action.
9542+
type: string
95339543
field:
95349544
description: The field of the set action
95359545
type: string
9546+
inherited:
9547+
description: Whether the value should be inherited.
9548+
type: boolean
95369549
name:
95379550
description: The name of the set action
95389551
type: string
95399552
scope:
9540-
description: The scope of the set action
9553+
description: The scope of the set action.
95419554
type: string
95429555
size:
9543-
description: The size of the set action
9556+
description: The size of the set action.
95449557
format: int64
95459558
type: integer
95469559
ttl:
9547-
description: The time to live of the set action
9560+
description: The time to live of the set action.
95489561
format: int64
95499562
type: integer
95509563
value:
@@ -9625,6 +9638,10 @@ components:
96259638
items:
96269639
type: string
96279640
type: array
9641+
silent:
9642+
description: Whether the rule is silent.
9643+
example: false
9644+
type: boolean
96289645
updateAuthorUuId:
96299646
description: The ID of the user who updated the rule
96309647
example: e51c9744-d158-11ec-ad23-da7ad0900002
@@ -9652,8 +9669,11 @@ components:
96529669
properties:
96539670
actions:
96549671
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
9672+
agent_version:
9673+
description: Constrain the rule to specific versions of the Datadog Agent.
9674+
type: string
96559675
blocking:
9656-
description: The blocking policies that the rule belongs to
9676+
description: The blocking policies that the rule belongs to.
96579677
items:
96589678
type: string
96599679
type: array
@@ -9662,25 +9682,25 @@ components:
96629682
example: My Agent rule
96639683
type: string
96649684
disabled:
9665-
description: The disabled policies that the rule belongs to
9685+
description: The disabled policies that the rule belongs to.
96669686
items:
96679687
type: string
96689688
type: array
96699689
enabled:
9670-
description: Whether the Agent rule is enabled
9690+
description: Whether the Agent rule is enabled.
96719691
example: true
96729692
type: boolean
96739693
expression:
96749694
description: The SECL expression of the Agent rule.
96759695
example: exec.file.name == "sh"
96769696
type: string
96779697
filters:
9678-
description: The platforms the Agent rule is supported on
9698+
description: The platforms the Agent rule is supported on.
96799699
items:
96809700
type: string
96819701
type: array
96829702
monitoring:
9683-
description: The monitoring policies that the rule belongs to
9703+
description: The monitoring policies that the rule belongs to.
96849704
items:
96859705
type: string
96869706
type: array
@@ -9689,14 +9709,18 @@ components:
96899709
example: my_agent_rule
96909710
type: string
96919711
policy_id:
9692-
description: The ID of the policy where the Agent rule is saved
9712+
description: The ID of the policy where the Agent rule is saved.
96939713
example: a8c8e364-6556-434d-b798-a4c23de29c0b
96949714
type: string
96959715
product_tags:
9696-
description: The list of product tags associated with the rule
9716+
description: The list of product tags associated with the rule.
96979717
items:
96989718
type: string
96999719
type: array
9720+
silent:
9721+
description: Whether the rule is silent.
9722+
example: false
9723+
type: boolean
97009724
required:
97019725
- name
97029726
- expression
@@ -9776,6 +9800,9 @@ components:
97769800
properties:
97779801
actions:
97789802
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
9803+
agent_version:
9804+
description: Constrain the rule to specific versions of the Datadog Agent
9805+
type: string
97799806
blocking:
97809807
description: The blocking policies that the rule belongs to
97819808
items:
@@ -9812,6 +9839,10 @@ components:
98129839
items:
98139840
type: string
98149841
type: array
9842+
silent:
9843+
description: Whether the rule is silent.
9844+
example: false
9845+
type: boolean
98159846
type: object
98169847
CloudWorkloadSecurityAgentRuleUpdateData:
98179848
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-02T09:31:44.772Z"

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": "3539a95afa67e2b29d75d10d90134d50",
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\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1759397504\"},\"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\":\"c2b-3hl-u2g\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulereturnsbadrequestresponse1759397504\",\"pinned\":false,\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1759397505185,\"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-02T09:31:44.777Z",
61+
"time": 901
6262
},
6363
{
64-
"_id": "d7f17e68d7f3cfd45191d2db96081e72",
64+
"_id": "9aaeacdcd354e85b6de0e7c8f1111f43",
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\":\"c2b-3hl-u2g\",\"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-02T09:31:45.683Z",
114+
"time": 403
115115
},
116116
{
117-
"_id": "4d3f95b180cb6f4b566ba489d950e4bf",
117+
"_id": "978d34e6055b93c042b71b565e29771d",
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/c2b-3hl-u2g"
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-02T09:31:46.091Z",
156+
"time": 887
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-02T09:31:46.982Z"

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "cbe9253613f5d3fb32b237404879c5e9",
11+
"_id": "2e18b99a18580b3e818171d304e6bc95",
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\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1759397506\"},\"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": 442,
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": 442,
45+
"text": "{\"data\":{\"id\":\"rme-dgj-owx\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:staging\"]],\"monitoringRulesCount\":7,\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1759397506\",\"pinned\":false,\"policyVersion\":\"1\",\"ruleCount\":8,\"updateDate\":1759397507383,\"updater\":{\"name\":\"frog\",\"handle\":\"[email protected]\"}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,15 +57,15 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2025-05-27T10:24:54.069Z",
61-
"time": 610
60+
"startedDateTime": "2025-10-02T09:31:46.984Z",
61+
"time": 863
6262
},
6363
{
64-
"_id": "f913fcf7b123725236248fbbaf89e45c",
64+
"_id": "44647a5f763ee1daaf260f2f4580b139",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
68-
"bodySize": 262,
68+
"bodySize": 287,
6969
"cookies": [],
7070
"headers": [
7171
{
@@ -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\":{\"agent_version\":\"> 7.60\",\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1759397506\",\"policy_id\":\"rme-dgj-owx\",\"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\":\"rss-jrm-pyp\",\"type\":\"agent_rule\",\"attributes\":{\"category\":\"Process Activity\",\"creationDate\":1759397508245,\"creator\":{\"name\":\"frog\",\"handle\":\"[email protected]\"},\"defaultRule\":false,\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == \\\"sh\\\"\",\"filters\":[\"os == \\\"linux\\\"\"],\"monitoring\":[\"rme-dgj-owx\"],\"name\":\"testcreateaworkloadprotectionagentrulereturnsokresponse1759397506\",\"product_tags\":[],\"updateDate\":1759397508245,\"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-10-02T09:31:47.851Z",
114+
"time": 843
115115
},
116116
{
117-
"_id": "151f86620345d9c8e93c7400bcca35b2",
117+
"_id": "bf34e3697f849487de2b277847938b31",
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/rss-jrm-pyp"
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-10-02T09:31:48.705Z",
156+
"time": 1041
157157
},
158158
{
159-
"_id": "7a99bac7e0baed2df14d56b80bf32a29",
159+
"_id": "a9379d1253261454d408f572078a241d",
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/rme-dgj-owx"
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-10-02T09:31:49.752Z",
198+
"time": 734
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-10-02T09:31:50.489Z"

0 commit comments

Comments
 (0)