Skip to content

Commit 08f243d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update some SDS status codes from 200 to 201 (#3293)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 6cf42e3 commit 08f243d

27 files changed

Lines changed: 605 additions & 561 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95202,7 +95202,7 @@ paths:
9520295202
$ref: '#/components/schemas/SensitiveDataScannerGroupCreateRequest'
9520395203
required: true
9520495204
responses:
95205-
'200':
95205+
'201':
9520695206
content:
9520795207
application/json:
9520895208
schema:
@@ -95344,7 +95344,7 @@ paths:
9534495344
$ref: '#/components/schemas/SensitiveDataScannerRuleCreateRequest'
9534595345
required: true
9534695346
responses:
95347-
'200':
95347+
'201':
9534895348
content:
9534995349
application/json:
9535095350
schema:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-12-09T09:52:45.850Z"
1+
"2026-01-19T13:11:03.221Z"

cassettes/v2/Sensitive-Data-Scanner_3248008071/Create-Scanning-Group-returns-OK-response_232578477/recording.har

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,30 @@
2828
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config"
2929
},
3030
"response": {
31-
"bodySize": 303,
31+
"bodySize": 485,
3232
"content": {
33-
"mimeType": "application/json",
34-
"size": 303,
35-
"text": "{\"meta\":{\"count_limit\":100,\"version\":1189,\"group_count_limit\":20,\"is_pci_compliant\":false,\"has_highlight_enabled\":true},\"data\":{\"relationships\":{\"groups\":{\"data\":[]}},\"attributes\":{},\"type\":\"sensitive_data_scanner_configuration\",\"id\":\"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87\"}}\n"
33+
"mimeType": "application/vnd.api+json",
34+
"size": 485,
35+
"text": "{\"data\":{\"attributes\":{},\"id\":\"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87\",\"relationships\":{\"groups\":{\"data\":[]}},\"type\":\"sensitive_data_scanner_configuration\"},\"meta\":{\"count_limit\":500,\"group_count_limit\":20,\"has_cascading_enabled\":false,\"has_highlight_enabled\":true,\"has_multi_pass_enabled\":true,\"is_configuration_superseded\":false,\"is_float_sampling_rate_enabled\":false,\"is_pci_compliant\":false,\"min_sampling_rate\":10,\"rule_count_limit\":500,\"version\":277985}}"
3636
},
3737
"cookies": [],
3838
"headers": [
3939
{
4040
"name": "content-type",
41-
"value": "application/json"
41+
"value": "application/vnd.api+json"
4242
}
4343
],
44-
"headersSize": 490,
44+
"headersSize": 674,
4545
"httpVersion": "HTTP/1.1",
4646
"redirectURL": "",
4747
"status": 200,
4848
"statusText": "OK"
4949
},
50-
"startedDateTime": "2022-12-09T09:52:45.866Z",
51-
"time": 811
50+
"startedDateTime": "2026-01-19T13:11:03.224Z",
51+
"time": 493
5252
},
5353
{
54-
"_id": "34f3cbba19c670fd86e3bd4afb0897f6",
54+
"_id": "768ab00e8220b3c20e3a18d2db398608",
5555
"_order": 0,
5656
"cache": {},
5757
"request": {
@@ -75,36 +75,36 @@
7575
"postData": {
7676
"mimeType": "application/json",
7777
"params": [],
78-
"text": "{\"data\":{\"attributes\":{\"filter\":{\"query\":\"*\"},\"is_enabled\":false,\"name\":\"Test-Create_Scanning_Group_returns_OK_response-1670579565\",\"product_list\":[\"logs\"]},\"relationships\":{\"configuration\":{\"data\":{\"id\":\"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87\",\"type\":\"sensitive_data_scanner_configuration\"}},\"rules\":{\"data\":[]}},\"type\":\"sensitive_data_scanner_group\"},\"meta\":{}}"
78+
"text": "{\"data\":{\"attributes\":{\"filter\":{\"query\":\"*\"},\"is_enabled\":false,\"name\":\"Test-Create_Scanning_Group_returns_OK_response-1768828263\",\"product_list\":[\"logs\"]},\"relationships\":{\"configuration\":{\"data\":{\"id\":\"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87\",\"type\":\"sensitive_data_scanner_configuration\"}},\"rules\":{\"data\":[]}},\"type\":\"sensitive_data_scanner_group\"},\"meta\":{}}"
7979
},
8080
"queryString": [],
8181
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups"
8282
},
8383
"response": {
84-
"bodySize": 434,
84+
"bodySize": 481,
8585
"content": {
86-
"mimeType": "application/json",
87-
"size": 434,
88-
"text": "{\"meta\":{\"version\":1190},\"data\":{\"relationships\":{\"rules\":{\"data\":[]},\"configuration\":{\"data\":{\"type\":\"sensitive_data_scanner_configuration\",\"id\":\"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87\"}}},\"attributes\":{\"is_enabled\":false,\"filter\":{\"query\":\"*\"},\"product_list\":[\"logs\"],\"name\":\"Test-Create_Scanning_Group_returns_OK_response-1670579565\"},\"type\":\"sensitive_data_scanner_group\",\"id\":\"RJDd4r3FQ2CpbYFQIL1KIA\"}}\n"
86+
"mimeType": "application/vnd.api+json",
87+
"size": 481,
88+
"text": "{\"data\":{\"id\":\"b9c899da-45e7-47d6-ae95-8372577923e5\",\"type\":\"sensitive_data_scanner_group\",\"attributes\":{\"description\":\"\",\"filter\":{\"query\":\"*\"},\"is_enabled\":false,\"name\":\"Test-Create_Scanning_Group_returns_OK_response-1768828263\",\"product_list\":[\"logs\"],\"samplings\":[]},\"relationships\":{\"configuration\":{\"data\":{\"id\":\"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87\",\"type\":\"sensitive_data_scanner_configuration\"}},\"rules\":{\"data\":[]}}},\"meta\":{\"version\":277986}}"
8989
},
9090
"cookies": [],
9191
"headers": [
9292
{
9393
"name": "content-type",
94-
"value": "application/json"
94+
"value": "application/vnd.api+json"
9595
}
9696
],
97-
"headersSize": 666,
97+
"headersSize": 673,
9898
"httpVersion": "HTTP/1.1",
9999
"redirectURL": "",
100-
"status": 200,
101-
"statusText": "OK"
100+
"status": 201,
101+
"statusText": "Created"
102102
},
103-
"startedDateTime": "2022-12-09T09:52:46.687Z",
104-
"time": 406
103+
"startedDateTime": "2026-01-19T13:11:03.731Z",
104+
"time": 429
105105
},
106106
{
107-
"_id": "e0b5044e3ded570c11d9a65a1c3c62b5",
107+
"_id": "2201536da8f98aeed768d8f4e1b4e177",
108108
"_order": 0,
109109
"cache": {},
110110
"request": {
@@ -122,7 +122,7 @@
122122
"value": "application/json"
123123
}
124124
],
125-
"headersSize": 614,
125+
"headersSize": 628,
126126
"httpVersion": "HTTP/1.1",
127127
"method": "DELETE",
128128
"postData": {
@@ -131,30 +131,30 @@
131131
"text": "{\"meta\":{}}"
132132
},
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/RJDd4r3FQ2CpbYFQIL1KIA"
134+
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/b9c899da-45e7-47d6-ae95-8372577923e5"
135135
},
136136
"response": {
137-
"bodySize": 26,
137+
"bodySize": 27,
138138
"content": {
139-
"mimeType": "application/json",
140-
"size": 26,
141-
"text": "{\"meta\":{\"version\":1191}}\n"
139+
"mimeType": "application/vnd.api+json",
140+
"size": 27,
141+
"text": "{\"meta\":{\"version\":277987}}"
142142
},
143143
"cookies": [],
144144
"headers": [
145145
{
146146
"name": "content-type",
147-
"value": "application/json"
147+
"value": "application/vnd.api+json"
148148
}
149149
],
150-
"headersSize": 649,
150+
"headersSize": 672,
151151
"httpVersion": "HTTP/1.1",
152152
"redirectURL": "",
153153
"status": 200,
154154
"statusText": "OK"
155155
},
156-
"startedDateTime": "2022-12-09T09:52:47.102Z",
157-
"time": 429
156+
"startedDateTime": "2026-01-19T13:11:04.171Z",
157+
"time": 141
158158
}
159159
],
160160
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-05-30T17:17:05.785Z"
1+
"2026-01-19T13:11:04.324Z"

cassettes/v2/Sensitive-Data-Scanner_3248008071/Create-Scanning-Rule-returns-Bad-Request-response_3579605322/recording.har

Lines changed: 38 additions & 38 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-05-30T17:17:07.743Z"
1+
"2026-01-19T13:11:06.289Z"

cassettes/v2/Sensitive-Data-Scanner_3248008071/Create-Scanning-Rule-returns-OK-response_273264728/recording.har

Lines changed: 51 additions & 51 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-08-26T20:31:44.042Z"
1+
"2026-01-19T13:11:08.516Z"

cassettes/v2/Sensitive-Data-Scanner_3248008071/Create-Scanning-Rule-with-should_save_match-returns-OK-response_3931772115/recording.har

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,27 @@
2828
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config"
2929
},
3030
"response": {
31-
"bodySize": 465,
31+
"bodySize": 485,
3232
"content": {
33-
"mimeType": "application/json",
34-
"size": 465,
35-
"text": "{\"data\":{\"id\":\"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87\",\"attributes\":{},\"type\":\"sensitive_data_scanner_configuration\",\"relationships\":{\"groups\":{\"data\":[]}}},\"meta\":{\"version\":275277,\"count_limit\":250,\"group_count_limit\":20,\"is_pci_compliant\":false,\"has_highlight_enabled\":true,\"has_multi_pass_enabled\":true,\"has_cascading_enabled\":false,\"is_configuration_superseded\":false,\"is_float_sampling_rate_enabled\":false,\"min_sampling_rate\":10.0}}\n"
33+
"mimeType": "application/vnd.api+json",
34+
"size": 485,
35+
"text": "{\"data\":{\"attributes\":{},\"id\":\"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87\",\"relationships\":{\"groups\":{\"data\":[]}},\"type\":\"sensitive_data_scanner_configuration\"},\"meta\":{\"count_limit\":500,\"group_count_limit\":20,\"has_cascading_enabled\":false,\"has_highlight_enabled\":true,\"has_multi_pass_enabled\":true,\"is_configuration_superseded\":false,\"is_float_sampling_rate_enabled\":false,\"is_pci_compliant\":false,\"min_sampling_rate\":10,\"rule_count_limit\":500,\"version\":277993}}"
3636
},
3737
"cookies": [],
3838
"headers": [
3939
{
4040
"name": "content-type",
41-
"value": "application/json"
41+
"value": "application/vnd.api+json"
4242
}
4343
],
44-
"headersSize": 548,
44+
"headersSize": 674,
4545
"httpVersion": "HTTP/1.1",
4646
"redirectURL": "",
4747
"status": 200,
4848
"statusText": "OK"
4949
},
50-
"startedDateTime": "2025-08-26T20:31:44.671Z",
51-
"time": 389
50+
"startedDateTime": "2026-01-19T13:11:08.519Z",
51+
"time": 548
5252
},
5353
{
5454
"_id": "e6af4a2fdfda8f066f3af5528b238a9d",
@@ -81,30 +81,30 @@
8181
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups"
8282
},
8383
"response": {
84-
"bodySize": 452,
84+
"bodySize": 466,
8585
"content": {
86-
"mimeType": "application/json",
87-
"size": 452,
88-
"text": "{\"data\":{\"id\":\"18cc2267-f3cc-4c15-917d-d3efb15deb03\",\"attributes\":{\"name\":\"my-test-group\",\"is_enabled\":false,\"filter\":{\"query\":\"*\"},\"product_list\":[\"logs\"],\"samplings\":[{\"product\":\"logs\",\"rate\":100.0}]},\"type\":\"sensitive_data_scanner_group\",\"relationships\":{\"configuration\":{\"data\":{\"id\":\"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87\",\"type\":\"sensitive_data_scanner_configuration\"}},\"rules\":{\"data\":[]}}},\"meta\":{\"version\":275278}}\n"
86+
"mimeType": "application/vnd.api+json",
87+
"size": 466,
88+
"text": "{\"data\":{\"id\":\"966a1ab3-056d-4af9-a205-68e570e54c85\",\"type\":\"sensitive_data_scanner_group\",\"attributes\":{\"description\":\"\",\"filter\":{\"query\":\"*\"},\"is_enabled\":false,\"name\":\"my-test-group\",\"product_list\":[\"logs\"],\"samplings\":[{\"product\":\"logs\",\"rate\":100}]},\"relationships\":{\"configuration\":{\"data\":{\"id\":\"7957915c634d4dcb581fa154157f5ad9c2947f50be632fb5599862069f4d2d87\",\"type\":\"sensitive_data_scanner_configuration\"}},\"rules\":{\"data\":[]}}},\"meta\":{\"version\":277994}}"
8989
},
9090
"cookies": [],
9191
"headers": [
9292
{
9393
"name": "content-type",
94-
"value": "application/json"
94+
"value": "application/vnd.api+json"
9595
}
9696
],
97-
"headersSize": 724,
97+
"headersSize": 673,
9898
"httpVersion": "HTTP/1.1",
9999
"redirectURL": "",
100-
"status": 200,
101-
"statusText": "OK"
100+
"status": 201,
101+
"statusText": "Created"
102102
},
103-
"startedDateTime": "2025-08-26T20:31:45.076Z",
104-
"time": 459
103+
"startedDateTime": "2026-01-19T13:11:09.073Z",
104+
"time": 451
105105
},
106106
{
107-
"_id": "d5695745b55eb2d21a8bce6beb63aa60",
107+
"_id": "3b33330a1d82e11194b3afed735ba424",
108108
"_order": 0,
109109
"cache": {},
110110
"request": {
@@ -128,36 +128,36 @@
128128
"postData": {
129129
"mimeType": "application/json",
130130
"params": [],
131-
"text": "{\"data\":{\"attributes\":{\"is_enabled\":true,\"name\":\"Test-Create_Scanning_Rule_with_should_save_match_returns_OK_response-1756240304\",\"pattern\":\"pattern\",\"priority\":1,\"tags\":[\"sensitive_data:true\"],\"text_replacement\":{\"replacement_string\":\"REDACTED\",\"should_save_match\":true,\"type\":\"replacement_string\"}},\"relationships\":{\"group\":{\"data\":{\"id\":\"18cc2267-f3cc-4c15-917d-d3efb15deb03\",\"type\":\"sensitive_data_scanner_group\"}}},\"type\":\"sensitive_data_scanner_rule\"},\"meta\":{}}"
131+
"text": "{\"data\":{\"attributes\":{\"is_enabled\":true,\"name\":\"Test-Create_Scanning_Rule_with_should_save_match_returns_OK_response-1768828268\",\"pattern\":\"pattern\",\"priority\":1,\"tags\":[\"sensitive_data:true\"],\"text_replacement\":{\"replacement_string\":\"REDACTED\",\"should_save_match\":true,\"type\":\"replacement_string\"}},\"relationships\":{\"group\":{\"data\":{\"id\":\"966a1ab3-056d-4af9-a205-68e570e54c85\",\"type\":\"sensitive_data_scanner_group\"}}},\"type\":\"sensitive_data_scanner_rule\"},\"meta\":{}}"
132132
},
133133
"queryString": [],
134134
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules"
135135
},
136136
"response": {
137-
"bodySize": 582,
137+
"bodySize": 581,
138138
"content": {
139-
"mimeType": "application/json",
140-
"size": 582,
141-
"text": "{\"data\":{\"id\":\"0e517b8a-04c1-4ae0-b57b-22b8e081190c\",\"attributes\":{\"name\":\"Test-Create_Scanning_Rule_with_should_save_match_returns_OK_response-1756240304\",\"namespaces\":[],\"excluded_namespaces\":[],\"pattern\":\"pattern\",\"text_replacement\":{\"replacement_string\":\"REDACTED\",\"should_save_match\":true,\"type\":\"replacement_string\"},\"tags\":[\"sensitive_data:true\"],\"labels\":[],\"is_enabled\":true,\"priority\":1},\"type\":\"sensitive_data_scanner_rule\",\"relationships\":{\"group\":{\"data\":{\"id\":\"18cc2267-f3cc-4c15-917d-d3efb15deb03\",\"type\":\"sensitive_data_scanner_group\"}}}},\"meta\":{\"version\":275279}}\n"
139+
"mimeType": "application/vnd.api+json",
140+
"size": 581,
141+
"text": "{\"data\":{\"id\":\"55dfd131-7ae1-4021-be59-4e4824eccc6f\",\"type\":\"sensitive_data_scanner_rule\",\"attributes\":{\"excluded_namespaces\":[],\"is_enabled\":true,\"labels\":[],\"name\":\"Test-Create_Scanning_Rule_with_should_save_match_returns_OK_response-1768828268\",\"namespaces\":[],\"pattern\":\"pattern\",\"priority\":1,\"tags\":[\"sensitive_data:true\"],\"text_replacement\":{\"type\":\"replacement_string\",\"replacement_string\":\"REDACTED\",\"should_save_match\":true}},\"relationships\":{\"group\":{\"data\":{\"id\":\"966a1ab3-056d-4af9-a205-68e570e54c85\",\"type\":\"sensitive_data_scanner_group\"}}}},\"meta\":{\"version\":277995}}"
142142
},
143143
"cookies": [],
144144
"headers": [
145145
{
146146
"name": "content-type",
147-
"value": "application/json"
147+
"value": "application/vnd.api+json"
148148
}
149149
],
150-
"headersSize": 730,
150+
"headersSize": 673,
151151
"httpVersion": "HTTP/1.1",
152152
"redirectURL": "",
153-
"status": 200,
154-
"statusText": "OK"
153+
"status": 201,
154+
"statusText": "Created"
155155
},
156-
"startedDateTime": "2025-08-26T20:31:45.541Z",
157-
"time": 384
156+
"startedDateTime": "2026-01-19T13:11:09.532Z",
157+
"time": 473
158158
},
159159
{
160-
"_id": "9cb4750bc912e7e7baa631b157a5f623",
160+
"_id": "aa5a3cdea43f3e4ba188dbf93705f2a8",
161161
"_order": 0,
162162
"cache": {},
163163
"request": {
@@ -175,7 +175,7 @@
175175
"value": "application/json"
176176
}
177177
],
178-
"headersSize": 624,
178+
"headersSize": 626,
179179
"httpVersion": "HTTP/1.1",
180180
"method": "DELETE",
181181
"postData": {
@@ -184,33 +184,33 @@
184184
"text": "{\"meta\":{}}"
185185
},
186186
"queryString": [],
187-
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/0e517b8a-04c1-4ae0-b57b-22b8e081190c"
187+
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/rules/55dfd131-7ae1-4021-be59-4e4824eccc6f"
188188
},
189189
"response": {
190-
"bodySize": 28,
190+
"bodySize": 27,
191191
"content": {
192-
"mimeType": "application/json",
193-
"size": 28,
194-
"text": "{\"meta\":{\"version\":275280}}\n"
192+
"mimeType": "application/vnd.api+json",
193+
"size": 27,
194+
"text": "{\"meta\":{\"version\":277996}}"
195195
},
196196
"cookies": [],
197197
"headers": [
198198
{
199199
"name": "content-type",
200-
"value": "application/json"
200+
"value": "application/vnd.api+json"
201201
}
202202
],
203-
"headersSize": 706,
203+
"headersSize": 672,
204204
"httpVersion": "HTTP/1.1",
205205
"redirectURL": "",
206206
"status": 200,
207207
"statusText": "OK"
208208
},
209-
"startedDateTime": "2025-08-26T20:31:45.931Z",
210-
"time": 384
209+
"startedDateTime": "2026-01-19T13:11:10.008Z",
210+
"time": 455
211211
},
212212
{
213-
"_id": "e79ae3f126edbe8515ec0a35094e9e3f",
213+
"_id": "6056aa2d0f652f4506703b3396ce8004",
214214
"_order": 0,
215215
"cache": {},
216216
"request": {
@@ -237,30 +237,30 @@
237237
"text": "{\"meta\":{}}"
238238
},
239239
"queryString": [],
240-
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/18cc2267-f3cc-4c15-917d-d3efb15deb03"
240+
"url": "https://api.datadoghq.com/api/v2/sensitive-data-scanner/config/groups/966a1ab3-056d-4af9-a205-68e570e54c85"
241241
},
242242
"response": {
243-
"bodySize": 28,
243+
"bodySize": 27,
244244
"content": {
245-
"mimeType": "application/json",
246-
"size": 28,
247-
"text": "{\"meta\":{\"version\":275281}}\n"
245+
"mimeType": "application/vnd.api+json",
246+
"size": 27,
247+
"text": "{\"meta\":{\"version\":277997}}"
248248
},
249249
"cookies": [],
250250
"headers": [
251251
{
252252
"name": "content-type",
253-
"value": "application/json"
253+
"value": "application/vnd.api+json"
254254
}
255255
],
256-
"headersSize": 707,
256+
"headersSize": 672,
257257
"httpVersion": "HTTP/1.1",
258258
"redirectURL": "",
259259
"status": 200,
260260
"statusText": "OK"
261261
},
262-
"startedDateTime": "2025-08-26T20:31:46.319Z",
263-
"time": 445
262+
"startedDateTime": "2026-01-19T13:11:10.470Z",
263+
"time": 476
264264
}
265265
],
266266
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2025-05-30T17:17:09.412Z"
1+
"2026-01-19T13:11:10.959Z"

0 commit comments

Comments
 (0)