Skip to content

Commit 9b2085f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit b912eb9d04ad76b8c18fce305eba72accf1473c0 of spec repo (#2237)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 409758b commit 9b2085f

File tree

437 files changed

+26110
-2644
lines changed

Some content is hidden

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

437 files changed

+26110
-2644
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 1035 additions & 4 deletions
Large diffs are not rendered by default.

.generator/schemas/v2/openapi.yaml

Lines changed: 7974 additions & 1045 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-04-15T09:10:06.353Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "CSM Threats/Create a CSM Threats Agent policy returns \"Bad Request\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "883ed00c3ccd7f5dcf4665bf3a474c74",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 135,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 595,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[],\"hostTagsLists\":[],\"name\":\"test\"},\"type\":\"policy\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy"
39+
},
40+
"response": {
41+
"bodySize": 49,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 49,
45+
"text": "{\"errors\":[{\"title\":\"failed to create policy\"}]}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 216,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 400,
58+
"statusText": "Bad Request"
59+
},
60+
"startedDateTime": "2025-04-15T09:10:06.569Z",
61+
"time": 191
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-04-15T09:10:06.769Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"log": {
3+
"_recordingName": "CSM Threats/Create a CSM Threats Agent policy returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "f10f3f6864cc08b49f4e80d366a5862f",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 144,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 595,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTagsLists\":[[\"env:test\"]],\"name\":\"my_agent_policy\"},\"type\":\"policy\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy"
39+
},
40+
"response": {
41+
"bodySize": 424,
42+
"content": {
43+
"mimeType": "application/json",
44+
"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\"}}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 217,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2025-04-15T09:10:06.772Z",
61+
"time": 816
62+
},
63+
{
64+
"_id": "217dfe641f33003dee9d203ae51dfa29",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 0,
69+
"cookies": [],
70+
"headers": [
71+
{
72+
"_fromType": "array",
73+
"name": "accept",
74+
"value": "*/*"
75+
}
76+
],
77+
"headersSize": 543,
78+
"httpVersion": "HTTP/1.1",
79+
"method": "DELETE",
80+
"queryString": [],
81+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/4op-0bb-yom"
82+
},
83+
"response": {
84+
"bodySize": 0,
85+
"content": {
86+
"mimeType": "application/json",
87+
"size": 0
88+
},
89+
"cookies": [],
90+
"headers": [
91+
{
92+
"name": "content-type",
93+
"value": "application/json"
94+
}
95+
],
96+
"headersSize": 196,
97+
"httpVersion": "HTTP/1.1",
98+
"redirectURL": "",
99+
"status": 204,
100+
"statusText": "No Content"
101+
},
102+
"startedDateTime": "2025-04-15T09:10:07.594Z",
103+
"time": 494
104+
}
105+
],
106+
"pages": [],
107+
"version": "1.2"
108+
}
109+
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-04-23T17:57:44.167Z"
1+
"2025-04-01T14:30:45.280Z"

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

Lines changed: 103 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,64 @@
88
},
99
"entries": [
1010
{
11-
"_id": "5ac51b84f3dc48591cb2aee7e669dc09",
11+
"_id": "2c22f6b800572221bb82a94431d3f6f7",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 201,
15+
"bodySize": 190,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 595,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"My agent policy\",\"enabled\":true,\"hostTags\":[\"env:staging\"],\"name\":\"testcreateacsmthreatsagentrulereturnsbadrequestresponse1743517845\"},\"type\":\"policy\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy"
39+
},
40+
"response": {
41+
"bodySize": 470,
42+
"content": {
43+
"mimeType": "application/json",
44+
"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\"}}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 217,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2025-04-01T14:30:45.283Z",
61+
"time": 427
62+
},
63+
{
64+
"_id": "3362265e367b0482ae523fc0311cf28b",
65+
"_order": 0,
66+
"cache": {},
67+
"request": {
68+
"bodySize": 200,
1669
"cookies": [],
1770
"headers": [
1871
{
@@ -32,17 +85,17 @@
3285
"postData": {
3386
"mimeType": "application/json",
3487
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"My Agent rule\",\"enabled\":true,\"expression\":\"exec.file.name == sh\",\"name\":\"testcreateacsmthreatsagentrulereturnsbadrequestresponse1713895064\"},\"type\":\"agent_rule\"}}"
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\"}}"
3689
},
3790
"queryString": [],
3891
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/agent_rules"
3992
},
4093
"response": {
41-
"bodySize": 194,
94+
"bodySize": 128,
4295
"content": {
4396
"mimeType": "application/json",
44-
"size": 194,
45-
"text": "{\"errors\":[\"input_validation_error(Field 'expression' is invalid: rule `testcreateacsmthreatsagentrulereturnsbadrequestresponse1713895064` error: rule compilation error: field `sh` not found)\"]}"
97+
"size": 128,
98+
"text": "{\"errors\":[\"input_validation_error(Field 'name' is invalid: rule `my_agent_rule` error: multiple definition with the same ID)\"]}"
4699
},
47100
"cookies": [],
48101
"headers": [
@@ -57,8 +110,50 @@
57110
"status": 400,
58111
"statusText": "Bad Request"
59112
},
60-
"startedDateTime": "2024-04-23T17:57:44.174Z",
61-
"time": 187
113+
"startedDateTime": "2025-04-01T14:30:45.742Z",
114+
"time": 659
115+
},
116+
{
117+
"_id": "a246d2606a96d40ba4855db945980300",
118+
"_order": 0,
119+
"cache": {},
120+
"request": {
121+
"bodySize": 0,
122+
"cookies": [],
123+
"headers": [
124+
{
125+
"_fromType": "array",
126+
"name": "accept",
127+
"value": "*/*"
128+
}
129+
],
130+
"headersSize": 543,
131+
"httpVersion": "HTTP/1.1",
132+
"method": "DELETE",
133+
"queryString": [],
134+
"url": "https://api.datadoghq.com/api/v2/remote_config/products/cws/policy/mrs-qdn-jq8"
135+
},
136+
"response": {
137+
"bodySize": 0,
138+
"content": {
139+
"mimeType": "application/json",
140+
"size": 0
141+
},
142+
"cookies": [],
143+
"headers": [
144+
{
145+
"name": "content-type",
146+
"value": "application/json"
147+
}
148+
],
149+
"headersSize": 196,
150+
"httpVersion": "HTTP/1.1",
151+
"redirectURL": "",
152+
"status": 204,
153+
"statusText": "No Content"
154+
},
155+
"startedDateTime": "2025-04-01T14:30:46.405Z",
156+
"time": 400
62157
}
63158
],
64159
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-05-22T16:22:22.200Z"
1+
"2025-04-01T14:30:46.809Z"

0 commit comments

Comments
 (0)