Skip to content

Commit b34c405

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add suppression tags (#2990)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent e801b41 commit b34c405

File tree

15 files changed

+159
-125
lines changed

15 files changed

+159
-125
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46991,6 +46991,14 @@ components:
4699146991
the queries to search signals in the signal explorer.
4699246992
example: env:staging status:low
4699346993
type: string
46994+
tags:
46995+
description: List of tags associated with the suppression rule.
46996+
example:
46997+
- technique:T1110-brute-force
46998+
- source:cloudtrail
46999+
items:
47000+
type: string
47001+
type: array
4699447002
update_date:
4699547003
description: A Unix millisecond timestamp given the update date of the suppression
4699647004
rule.
@@ -47052,6 +47060,14 @@ components:
4705247060
same syntax as the queries to search signals in the Signals Explorer.
4705347061
example: env:staging status:low
4705447062
type: string
47063+
tags:
47064+
description: List of tags associated with the suppression rule.
47065+
example:
47066+
- technique:T1110-brute-force
47067+
- source:cloudtrail
47068+
items:
47069+
type: string
47070+
type: array
4705547071
required:
4705647072
- name
4705747073
- enabled
@@ -47147,6 +47163,14 @@ components:
4714747163
the queries to search signals in the signal explorer.
4714847164
example: env:staging status:low
4714947165
type: string
47166+
tags:
47167+
description: List of tags associated with the suppression rule.
47168+
example:
47169+
- technique:T1110-brute-force
47170+
- source:cloudtrail
47171+
items:
47172+
type: string
47173+
type: array
4715047174
version:
4715147175
description: The current version of the suppression. This is optional, but
4715247176
it can help prevent concurrent modifications.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-11-27T15:22:34.711Z"
1+
"2025-11-07T12:27:25.514Z"

cassettes/v2/Security-Monitoring_1187227211/Create-a-suppression-rule-returns-OK-response_1135731355/recording.har

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "935a1a23dd04eabbdc7d2dd3caa616f9",
11+
"_id": "18b138fa5532048aaeca2cc970b03b98",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 372,
15+
"bodySize": 431,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,23 +26,23 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 614,
29+
"headersSize": 616,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"enabled\":true,\"expiration_date\":1734535354000,\"name\":\"Test-Create_a_suppression_rule_returns_OK_response-1732720954\",\"rule_query\":\"type:log_detection source:cloudtrail\",\"start_date\":1733584954000,\"suppression_query\":\"env:staging status:low\"},\"type\":\"suppressions\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"enabled\":true,\"expiration_date\":1764332845000,\"name\":\"Test-Create_a_suppression_rule_returns_OK_response-1762518445\",\"rule_query\":\"type:log_detection source:cloudtrail\",\"start_date\":1763382445000,\"suppression_query\":\"env:staging status:low\",\"tags\":[\"technique:T1110-brute-force\",\"source:cloudtrail\"]},\"type\":\"suppressions\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions"
3939
},
4040
"response": {
41-
"bodySize": 607,
41+
"bodySize": 722,
4242
"content": {
4343
"mimeType": "application/vnd.api+json",
44-
"size": 607,
45-
"text": "{\"data\":{\"id\":\"ejv-ksi-r4j\",\"type\":\"suppressions\",\"attributes\":{\"creation_date\":1732720954868,\"creator\":{\"handle\":\"frog@datadoghq.com\",\"name\":\"\"},\"data_exclusion_query\":\"\",\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"editable\":true,\"enabled\":true,\"expiration_date\":1734535354000,\"name\":\"Test-Create_a_suppression_rule_returns_OK_response-1732720954\",\"rule_query\":\"type:log_detection source:cloudtrail\",\"start_date\":1733584954000,\"suppression_query\":\"env:staging status:low\",\"update_date\":1732720954868,\"updater\":{\"handle\":\"frog@datadoghq.com\",\"name\":\"\"},\"version\":1}}}"
44+
"size": 722,
45+
"text": "{\"data\":{\"id\":\"oxk-jlo-pc8\",\"type\":\"suppressions\",\"attributes\":{\"creation_date\":1762518446390,\"creator\":{\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"},\"data_exclusion_query\":\"\",\"description\":\"This rule suppresses low-severity signals in staging environments.\",\"editable\":true,\"enabled\":true,\"expiration_date\":1764332845000,\"name\":\"Test-Create_a_suppression_rule_returns_OK_response-1762518445\",\"rule_query\":\"type:log_detection source:cloudtrail\",\"start_date\":1763382445000,\"suppression_query\":\"env:staging status:low\",\"tags\":[\"source:cloudtrail\",\"technique:T1110-brute-force\"],\"update_date\":1762518446390,\"updater\":{\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"},\"version\":1}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-11-27T15:22:34.717Z",
61-
"time": 188
60+
"startedDateTime": "2025-11-07T12:27:26.149Z",
61+
"time": 302
6262
},
6363
{
64-
"_id": "b62286dc79a3ad3484cfc79401028e80",
64+
"_id": "273543e67c610a4bb960dfa949ae3868",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -74,11 +74,11 @@
7474
"value": "*/*"
7575
}
7676
],
77-
"headersSize": 562,
77+
"headersSize": 564,
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/ejv-ksi-r4j"
81+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/oxk-jlo-pc8"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -94,8 +94,8 @@
9494
"status": 204,
9595
"statusText": "No Content"
9696
},
97-
"startedDateTime": "2024-11-27T15:22:34.912Z",
98-
"time": 124
97+
"startedDateTime": "2025-11-07T12:27:26.458Z",
98+
"time": 291
9999
}
100100
],
101101
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-05-10T16:34:39.853Z"
1+
"2025-11-07T12:27:26.759Z"

cassettes/v2/Security-Monitoring_1187227211/Delete-a-suppression-rule-returns-OK-response_1910387314/recording.har

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "e6655e94cb793ce14e5d1729209d0834",
11+
"_id": "f181dcedeb3ebfdd020a40965b7229b2",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 275,
15+
"bodySize": 334,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,36 +32,36 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"Test-Delete_a_suppression_rule_returns_OK_response-1715358879\",\"enabled\":true,\"name\":\"Test-Delete_a_suppression_rule_returns_OK_response-1715358879\",\"rule_query\":\"source:cloudtrail\",\"suppression_query\":\"env:test\"},\"type\":\"suppressions\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"Test-Delete_a_suppression_rule_returns_OK_response-1762518446\",\"enabled\":true,\"name\":\"Test-Delete_a_suppression_rule_returns_OK_response-1762518446\",\"rule_query\":\"source:cloudtrail\",\"suppression_query\":\"env:test\",\"tags\":[\"technique:T1110-brute-force\",\"source:cloudtrail\"]},\"type\":\"suppressions\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions"
3939
},
4040
"response": {
41-
"bodySize": 499,
41+
"bodySize": 625,
4242
"content": {
43-
"mimeType": "application/json",
44-
"size": 499,
45-
"text": "{\"data\":{\"id\":\"csf-zrg-af0\",\"attributes\":{\"name\":\"Test-Delete_a_suppression_rule_returns_OK_response-1715358879\",\"enabled\":true,\"description\":\"Test-Delete_a_suppression_rule_returns_OK_response-1715358879\",\"rule_query\":\"source:cloudtrail\",\"suppression_query\":\"env:test\",\"data_exclusion_query\":\"\",\"version\":1,\"creation_date\":1715358880145,\"update_date\":1715358880145,\"creator\":{\"name\":null,\"handle\":\"frog@datadoghq.com\"},\"updater\":{\"name\":null,\"handle\":\"frog@datadoghq.com\"}},\"type\":\"suppressions\"}}\n"
43+
"mimeType": "application/vnd.api+json",
44+
"size": 625,
45+
"text": "{\"data\":{\"id\":\"uea-lab-big\",\"type\":\"suppressions\",\"attributes\":{\"creation_date\":1762518447002,\"creator\":{\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"},\"data_exclusion_query\":\"\",\"description\":\"Test-Delete_a_suppression_rule_returns_OK_response-1762518446\",\"editable\":true,\"enabled\":true,\"name\":\"Test-Delete_a_suppression_rule_returns_OK_response-1762518446\",\"rule_query\":\"source:cloudtrail\",\"suppression_query\":\"env:test\",\"tags\":[\"source:cloudtrail\",\"technique:T1110-brute-force\"],\"update_date\":1762518447002,\"updater\":{\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"},\"version\":1}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
4949
{
5050
"name": "content-type",
51-
"value": "application/json"
51+
"value": "application/vnd.api+json"
5252
}
5353
],
54-
"headersSize": 655,
54+
"headersSize": 662,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-05-10T16:34:39.855Z",
61-
"time": 389
60+
"startedDateTime": "2025-11-07T12:27:26.761Z",
61+
"time": 302
6262
},
6363
{
64-
"_id": "ae7f3023a499f5415094584fbf12c187",
64+
"_id": "2b54ce26df1a55f283769da4db5d8f64",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,32 +78,27 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/csf-zrg-af0"
81+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/uea-lab-big"
8282
},
8383
"response": {
8484
"bodySize": 0,
8585
"content": {
86-
"mimeType": "text/html; charset=utf-8",
86+
"mimeType": "text/plain",
8787
"size": 0
8888
},
8989
"cookies": [],
90-
"headers": [
91-
{
92-
"name": "content-type",
93-
"value": "text/html; charset=utf-8"
94-
}
95-
],
96-
"headersSize": 642,
90+
"headers": [],
91+
"headersSize": 601,
9792
"httpVersion": "HTTP/1.1",
9893
"redirectURL": "",
9994
"status": 204,
10095
"statusText": "No Content"
10196
},
102-
"startedDateTime": "2024-05-10T16:34:40.247Z",
103-
"time": 371
97+
"startedDateTime": "2025-11-07T12:27:27.069Z",
98+
"time": 276
10499
},
105100
{
106-
"_id": "ae7f3023a499f5415094584fbf12c187",
101+
"_id": "2b54ce26df1a55f283769da4db5d8f64",
107102
"_order": 1,
108103
"cache": {},
109104
"request": {
@@ -120,14 +115,14 @@
120115
"httpVersion": "HTTP/1.1",
121116
"method": "DELETE",
122117
"queryString": [],
123-
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/csf-zrg-af0"
118+
"url": "https://api.datadoghq.com/api/v2/security_monitoring/configuration/suppressions/uea-lab-big"
124119
},
125120
"response": {
126-
"bodySize": 68,
121+
"bodySize": 67,
127122
"content": {
128123
"mimeType": "application/json",
129-
"size": 68,
130-
"text": "{\"errors\":[\"not_found(Suppression with ID csf-zrg-af0 not found)\"]}\n"
124+
"size": 67,
125+
"text": "{\"errors\":[\"not_found(Suppression with ID uea-lab-big not found)\"]}"
131126
},
132127
"cookies": [],
133128
"headers": [
@@ -136,14 +131,14 @@
136131
"value": "application/json"
137132
}
138133
],
139-
"headersSize": 654,
134+
"headersSize": 653,
140135
"httpVersion": "HTTP/1.1",
141136
"redirectURL": "",
142137
"status": 404,
143138
"statusText": "Not Found"
144139
},
145-
"startedDateTime": "2024-05-10T16:34:40.623Z",
146-
"time": 328
140+
"startedDateTime": "2025-11-07T12:27:27.350Z",
141+
"time": 274
147142
}
148143
],
149144
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-05-10T16:34:46.398Z"
1+
"2025-11-07T12:27:27.654Z"

0 commit comments

Comments
 (0)