Skip to content

Commit 0558228

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 31b66a21 of spec repo
1 parent 88999b1 commit 0558228

File tree

79 files changed

+1055
-406
lines changed

Some content is hidden

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

79 files changed

+1055
-406
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-16 13:56:32.228031",
8-
"spec_repo_commit": "dac51bc6"
7+
"regenerated": "2025-05-16 19:11:27.523725",
8+
"spec_repo_commit": "31b66a21"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-16 13:56:32.243721",
13-
"spec_repo_commit": "dac51bc6"
12+
"regenerated": "2025-05-16 19:11:27.539883",
13+
"spec_repo_commit": "31b66a21"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+95
Original file line numberDiff line numberDiff line change
@@ -7318,6 +7318,8 @@ components:
73187318
CloudWorkloadSecurityAgentPolicyCreateAttributes:
73197319
description: Create a new Cloud Workload Security Agent policy
73207320
properties:
7321+
actions:
7322+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
73217323
description:
73227324
description: The description of the policy
73237325
example: My agent policy
@@ -7399,6 +7401,8 @@ components:
73997401
CloudWorkloadSecurityAgentPolicyUpdateAttributes:
74007402
description: Update an existing Cloud Workload Security Agent policy
74017403
properties:
7404+
actions:
7405+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
74027406
description:
74037407
description: The description of the policy
74047408
example: My agent policy
@@ -7469,6 +7473,50 @@ components:
74697473
type: string
74707474
kill:
74717475
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleKill'
7476+
metadata:
7477+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionMetadata'
7478+
set:
7479+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet'
7480+
type: object
7481+
CloudWorkloadSecurityAgentRuleActionMetadata:
7482+
description: The metadata action applied on the scope matching the rule
7483+
properties:
7484+
image_tag:
7485+
description: The image tag of the metadata action
7486+
type: string
7487+
service:
7488+
description: The service of the metadata action
7489+
type: string
7490+
short_image:
7491+
description: The short image of the metadata action
7492+
type: string
7493+
type: object
7494+
CloudWorkloadSecurityAgentRuleActionSet:
7495+
description: The set action applied on the scope matching the rule
7496+
properties:
7497+
append:
7498+
description: Whether the value should be appended to the field
7499+
type: boolean
7500+
field:
7501+
description: The field of the set action
7502+
type: string
7503+
name:
7504+
description: The name of the set action
7505+
type: string
7506+
scope:
7507+
description: The scope of the set action
7508+
type: string
7509+
size:
7510+
description: The size of the set action
7511+
format: int64
7512+
type: integer
7513+
ttl:
7514+
description: The time to live of the set action
7515+
format: int64
7516+
type: integer
7517+
value:
7518+
description: The value of the set action
7519+
type: string
74727520
type: object
74737521
CloudWorkloadSecurityAgentRuleActions:
74747522
description: The array of actions the rule can perform if triggered
@@ -7484,6 +7532,11 @@ components:
74847532
agentConstraint:
74857533
description: The version of the Agent
74867534
type: string
7535+
blocking:
7536+
description: The blocking policies that the rule belongs to
7537+
items:
7538+
type: string
7539+
type: array
74877540
category:
74887541
description: The category of the Agent rule
74897542
example: Process Activity
@@ -7507,6 +7560,11 @@ components:
75077560
description: The description of the Agent rule
75087561
example: My Agent rule
75097562
type: string
7563+
disabled:
7564+
description: The disabled policies that the rule belongs to
7565+
items:
7566+
type: string
7567+
type: array
75107568
enabled:
75117569
description: Whether the Agent rule is enabled
75127570
example: true
@@ -7520,6 +7578,11 @@ components:
75207578
items:
75217579
type: string
75227580
type: array
7581+
monitoring:
7582+
description: The monitoring policies that the rule belongs to
7583+
items:
7584+
type: string
7585+
type: array
75237586
name:
75247587
description: The name of the Agent rule
75257588
example: my_agent_rule
@@ -7554,10 +7617,22 @@ components:
75547617
CloudWorkloadSecurityAgentRuleCreateAttributes:
75557618
description: Create a new Cloud Workload Security Agent rule.
75567619
properties:
7620+
actions:
7621+
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActions'
7622+
blocking:
7623+
description: The blocking policies that the rule belongs to
7624+
items:
7625+
type: string
7626+
type: array
75577627
description:
75587628
description: The description of the Agent rule.
75597629
example: My Agent rule
75607630
type: string
7631+
disabled:
7632+
description: The disabled policies that the rule belongs to
7633+
items:
7634+
type: string
7635+
type: array
75617636
enabled:
75627637
description: Whether the Agent rule is enabled
75637638
example: true
@@ -7571,6 +7646,11 @@ components:
75717646
items:
75727647
type: string
75737648
type: array
7649+
monitoring:
7650+
description: The monitoring policies that the rule belongs to
7651+
items:
7652+
type: string
7653+
type: array
75747654
name:
75757655
description: The name of the Agent rule.
75767656
example: my_agent_rule
@@ -7661,10 +7741,20 @@ components:
76617741
CloudWorkloadSecurityAgentRuleUpdateAttributes:
76627742
description: Update an existing Cloud Workload Security Agent rule
76637743
properties:
7744+
blocking:
7745+
description: The blocking policies that the rule belongs to
7746+
items:
7747+
type: string
7748+
type: array
76647749
description:
76657750
description: The description of the Agent rule
76667751
example: My Agent rule
76677752
type: string
7753+
disabled:
7754+
description: The disabled policies that the rule belongs to
7755+
items:
7756+
type: string
7757+
type: array
76687758
enabled:
76697759
description: Whether the Agent rule is enabled
76707760
example: true
@@ -7673,6 +7763,11 @@ components:
76737763
description: The SECL expression of the Agent rule
76747764
example: exec.file.name == "sh"
76757765
type: string
7766+
monitoring:
7767+
description: The monitoring policies that the rule belongs to
7768+
items:
7769+
type: string
7770+
type: array
76767771
policy_id:
76777772
description: The ID of the policy where the Agent rule is saved
76787773
example: a8c8e364-6556-434d-b798-a4c23de29c0b
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-04-15T09:10:06.353Z"
1+
"2025-05-16T15:01:31.770Z"

cassettes/v2/CSM-Threats_3156990395/Create-a-CSM-Threats-Agent-policy-returns-Bad-Request-response_3409010185/recording.har

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy"
3939
},
4040
"response": {
41-
"bodySize": 49,
41+
"bodySize": 119,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 49,
45-
"text": "{\"errors\":[{\"title\":\"failed to create policy\"}]}\n"
44+
"size": 119,
45+
"text": "{\"errors\":[\"input_validation_error(Field 'tags' is invalid: cannot have both the new and the legacy field populated)\"]}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,14 +51,14 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 216,
54+
"headersSize": 217,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 400,
5858
"statusText": "Bad Request"
5959
},
60-
"startedDateTime": "2025-04-15T09:10:06.569Z",
61-
"time": 191
60+
"startedDateTime": "2025-05-16T15:01:31.990Z",
61+
"time": 215
6262
}
6363
],
6464
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-04-15T09:10:06.769Z"
1+
"2025-05-16T15:01:32.213Z"

cassettes/v2/CSM-Threats_3156990395/Create-a-CSM-Threats-Agent-policy-returns-OK-response_1087984389/recording.har

+7-7
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/json",
4444
"size": 424,
45-
"text": "{\"data\":{\"id\":\"4op-0bb-yom\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:test\"]],\"monitoringRulesCount\":225,\"name\":\"my_agent_policy\",\"policyVersion\":\"1\",\"priority\":1000000001,\"ruleCount\":226,\"updateDate\":1744708206895,\"updater\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}"
45+
"text": "{\"data\":{\"id\":\"bca-ovd-l9j\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTagsLists\":[[\"env:test\"]],\"monitoringRulesCount\":225,\"name\":\"my_agent_policy\",\"policyVersion\":\"1\",\"priority\":1000000070,\"ruleCount\":226,\"updateDate\":1747407692376,\"updater\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2025-04-15T09:10:06.772Z",
61-
"time": 816
60+
"startedDateTime": "2025-05-16T15:01:32.216Z",
61+
"time": 709
6262
},
6363
{
64-
"_id": "217dfe641f33003dee9d203ae51dfa29",
64+
"_id": "31a9482bb32011e62cc5bd68fb04fd4b",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,7 +78,7 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/4op-0bb-yom"
81+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/bca-ovd-l9j"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -99,8 +99,8 @@
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2025-04-15T09:10:07.594Z",
103-
"time": 494
102+
"startedDateTime": "2025-05-16T15:01:32.931Z",
103+
"time": 775
104104
}
105105
],
106106
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-04-01T14:30:45.280Z"
1+
"2025-05-16T15:01:33.711Z"

cassettes/v2/CSM-Threats_3156990395/Create-a-CSM-Threats-Agent-rule-returns-Bad-Request-response_639435269/recording.har

+16-16
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "2c22f6b800572221bb82a94431d3f6f7",
11+
"_id": "822d6b35611e111d4d3ebd2b07976d1b",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -32,7 +32,7 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateacsmthreatsagentrulereturnsbadrequestresponse1743517845\"},\"type\":\"policy\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateacsmthreatsagentrulereturnsbadrequestresponse1747407693\"},\"type\":\"policy\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy"
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/json",
4444
"size": 470,
45-
"text": "{\"data\":{\"id\":\"mrs-qdn-jq8\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTags\":[\"env:staging\"],\"monitoringRulesCount\":225,\"name\":\"testcreateacsmthreatsagentrulereturnsbadrequestresponse1743517845\",\"policyVersion\":\"1\",\"priority\":1000000001,\"ruleCount\":226,\"updateDate\":1743517845323,\"updater\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}"
45+
"text": "{\"data\":{\"id\":\"qfi-wl8-ccy\",\"type\":\"policy\",\"attributes\":{\"blockingRulesCount\":0,\"datadogManaged\":false,\"description\":\"My agent policy\",\"disabledRulesCount\":1,\"enabled\":true,\"hostTags\":[\"env:staging\"],\"monitoringRulesCount\":225,\"name\":\"testcreateacsmthreatsagentrulereturnsbadrequestresponse1747407693\",\"policyVersion\":\"1\",\"priority\":1000000070,\"ruleCount\":226,\"updateDate\":1747407693876,\"updater\":{\"name\":\"CI Account\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2025-04-01T14:30:45.283Z",
61-
"time": 427
60+
"startedDateTime": "2025-05-16T15:01:33.714Z",
61+
"time": 819
6262
},
6363
{
64-
"_id": "3362265e367b0482ae523fc0311cf28b",
64+
"_id": "527a328f09c90240c030a06d012f8d83",
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\":\"mrs-qdn-jq8\",\"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\":\"qfi-wl8-ccy\",\"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": 128,
94+
"bodySize": 154,
9595
"content": {
9696
"mimeType": "application/json",
97-
"size": 128,
98-
"text": "{\"errors\":[\"input_validation_error(Field 'name' is invalid: rule `my_agent_rule` error: multiple definition with the same ID)\"]}"
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^)\"]}"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 400,
111111
"statusText": "Bad Request"
112112
},
113-
"startedDateTime": "2025-04-01T14:30:45.742Z",
114-
"time": 659
113+
"startedDateTime": "2025-05-16T15:01:34.539Z",
114+
"time": 566
115115
},
116116
{
117-
"_id": "a246d2606a96d40ba4855db945980300",
117+
"_id": "ad7c66ac7610a1e9b0656b904d70ed44",
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/mrs-qdn-jq8"
134+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/qfi-wl8-ccy"
135135
},
136136
"response": {
137137
"bodySize": 0,
@@ -152,8 +152,8 @@
152152
"status": 204,
153153
"statusText": "No Content"
154154
},
155-
"startedDateTime": "2025-04-01T14:30:46.405Z",
156-
"time": 400
155+
"startedDateTime": "2025-05-16T15:01:35.111Z",
156+
"time": 695
157157
}
158158
],
159159
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-04-01T14:30:46.809Z"
1+
"2025-05-16T15:01:35.811Z"

0 commit comments

Comments
 (0)