Skip to content

Commit 43c4577

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add pagination and sorting parameters on suppression list (#2903)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 4147127 commit 43c4577

27 files changed

Lines changed: 939 additions & 46 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49256,6 +49256,18 @@ components:
4925649256
meta:
4925749257
$ref: '#/components/schemas/ResponseMetaAttributes'
4925849258
type: object
49259+
SecurityMonitoringPaginatedSuppressionsResponse:
49260+
description: Response object containing the available suppression rules with
49261+
pagination metadata.
49262+
properties:
49263+
data:
49264+
description: A list of suppressions objects.
49265+
items:
49266+
$ref: '#/components/schemas/SecurityMonitoringSuppression'
49267+
type: array
49268+
meta:
49269+
$ref: '#/components/schemas/SecurityMonitoringSuppressionsMeta'
49270+
type: object
4925949271
SecurityMonitoringReferenceTable:
4926049272
description: Reference tables used in the queries.
4926149273
properties:
@@ -51405,6 +51417,31 @@ components:
5140551417
data:
5140651418
$ref: '#/components/schemas/SecurityMonitoringSuppression'
5140751419
type: object
51420+
SecurityMonitoringSuppressionSort:
51421+
description: The sort parameters used for querying suppression rules.
51422+
enum:
51423+
- name
51424+
- start_date
51425+
- expiration_date
51426+
- update_date
51427+
- enabled
51428+
- -name
51429+
- -start_date
51430+
- -expiration_date
51431+
- -update_date
51432+
- -enabled
51433+
type: string
51434+
x-enum-varnames:
51435+
- NAME
51436+
- START_DATE
51437+
- EXPIRATION_DATE
51438+
- UPDATE_DATE
51439+
- ENABLED
51440+
- NAME_DESCENDING
51441+
- START_DATE_DESCENDING
51442+
- EXPIRATION_DATE_DESCENDING
51443+
- UPDATE_DATE_DESCENDING
51444+
- ENABLED_DESCENDING
5140851445
SecurityMonitoringSuppressionType:
5140951446
default: suppressions
5141051447
description: The type of the resource. The value should always be `suppressions`.
@@ -51500,6 +51537,31 @@ components:
5150051537
required:
5150151538
- data
5150251539
type: object
51540+
SecurityMonitoringSuppressionsMeta:
51541+
description: Metadata for the suppression list response.
51542+
properties:
51543+
page:
51544+
$ref: '#/components/schemas/SecurityMonitoringSuppressionsPageMeta'
51545+
type: object
51546+
SecurityMonitoringSuppressionsPageMeta:
51547+
description: Pagination metadata.
51548+
properties:
51549+
pageNumber:
51550+
description: Current page number.
51551+
example: 0
51552+
format: int64
51553+
type: integer
51554+
pageSize:
51555+
description: Current page size.
51556+
example: 2
51557+
format: int64
51558+
type: integer
51559+
totalCount:
51560+
description: Total count of suppressions.
51561+
example: 2
51562+
format: int64
51563+
type: integer
51564+
type: object
5150351565
SecurityMonitoringSuppressionsResponse:
5150451566
description: Response object containing the available suppression rules.
5150551567
properties:
@@ -85670,12 +85732,29 @@ paths:
8567085732
required: false
8567185733
schema:
8567285734
type: string
85735+
- description: Attribute used to sort the list of suppression rules. Prefix
85736+
with `-` to sort in descending order.
85737+
in: query
85738+
name: sort
85739+
required: false
85740+
schema:
85741+
$ref: '#/components/schemas/SecurityMonitoringSuppressionSort'
85742+
- description: Size for a given page. Use `-1` to return all items.
85743+
in: query
85744+
name: page[size]
85745+
required: false
85746+
schema:
85747+
default: -1
85748+
example: 10
85749+
format: int64
85750+
type: integer
85751+
- $ref: '#/components/parameters/PageNumber'
8567385752
responses:
8567485753
'200':
8567585754
content:
8567685755
application/json:
8567785756
schema:
85678-
$ref: '#/components/schemas/SecurityMonitoringSuppressionsResponse'
85757+
$ref: '#/components/schemas/SecurityMonitoringPaginatedSuppressionsResponse'
8567985758
description: OK
8568085759
'403':
8568185760
$ref: '#/components/responses/NotAuthorizedResponse'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-11-07T12:27:26.759Z
1+
2026-01-14T17:29:03.168Z

cassettes/features/v2/security_monitoring/Delete-a-suppression-rule-returns-OK-response.yml

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-11-07T12:27:27.654Z
1+
2026-01-14T17:29:04.856Z

cassettes/features/v2/security_monitoring/Get-a-suppression-rule-returns-OK-response.yml

Lines changed: 13 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-11-26T13:33:06.482Z
1+
2026-01-14T17:29:05.317Z

cassettes/features/v2/security_monitoring/Get-a-suppression-s-version-history-returns-OK-response.yml

Lines changed: 15 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-01-14T17:12:28.523Z

0 commit comments

Comments
 (0)