Skip to content

Commit 747f691

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
add suppression version history (#33057)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 7b199c1 commit 747f691

File tree

7 files changed

+261
-148
lines changed

7 files changed

+261
-148
lines changed

config/_default/menus/api.en.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,6 +2753,18 @@ menu:
27532753
- ListSecurityMonitoringRules
27542754
unstable: []
27552755
order: 4
2756+
- name: Get a suppression's version history
2757+
url: '#get-a-suppressions-version-history'
2758+
identifier: security-monitoring-get-a-suppressions-version-history
2759+
parent: security-monitoring
2760+
generated: true
2761+
params:
2762+
versions:
2763+
- v2
2764+
operationids:
2765+
- GetSuppressionVersionHistory
2766+
unstable: []
2767+
order: 0
27562768
- name: Update a suppression rule
27572769
url: '#update-a-suppression-rule'
27582770
identifier: security-monitoring-update-a-suppression-rule

content/en/api/v2/csm-threats/examples.json

Lines changed: 48 additions & 100 deletions
Large diffs are not rendered by default.

content/en/api/v2/csm-threats/request.CreateCSMThreatsAgentRule_1295653933.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
}
1919
},
2020
{
21-
"hash": {
22-
"field": "exec.file"
23-
}
21+
"hash": {}
2422
}
2523
]
2624
},

content/en/api/v2/csm-threats/request.CreateCSMThreatsAgentRule_1363354233.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{
1313
"set": {
1414
"name": "test_set",
15-
"expression": "exec.file.path",
15+
"expression": "open.file.path",
1616
"default_value": "/dev/null",
1717
"scope": "process"
1818
}

content/en/api/v2/security-monitoring/examples.json

Lines changed: 82 additions & 0 deletions
Large diffs are not rendered by default.

data/api/v2/full_spec.yaml

Lines changed: 113 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -10236,10 +10236,6 @@ components:
1023610236
description: Whether the policy is pinned
1023710237
example: false
1023810238
type: boolean
10239-
policyType:
10240-
description: The type of the policy
10241-
example: policy
10242-
type: string
1024310239
policyVersion:
1024410240
description: The version of the policy
1024510241
example: '1'
@@ -10418,11 +10414,11 @@ components:
1041810414
CloudWorkloadSecurityAgentPolicyVersion:
1041910415
description: The versions of the policy
1042010416
properties:
10421-
date:
10417+
Date:
1042210418
description: The date and time the version was created
1042310419
nullable: true
1042410420
type: string
10425-
name:
10421+
Name:
1042610422
description: The version of the policy
1042710423
example: 1.47.0-rc2
1042810424
type: string
@@ -10449,11 +10445,8 @@ components:
1044910445
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionSet'
1045010446
type: object
1045110447
CloudWorkloadSecurityAgentRuleActionHash:
10452-
description: Hash file specified by the field attribute
10453-
properties:
10454-
field:
10455-
description: The field of the hash action
10456-
type: string
10448+
additionalProperties: {}
10449+
description: An empty object indicating the hash action
1045710450
type: object
1045810451
CloudWorkloadSecurityAgentRuleActionMetadata:
1045910452
description: The metadata action applied on the scope matching the rule
@@ -10501,14 +10494,9 @@ components:
1050110494
format: int64
1050210495
type: integer
1050310496
value:
10504-
$ref: '#/components/schemas/CloudWorkloadSecurityAgentRuleActionSetValue'
10497+
description: The value of the set action
10498+
type: string
1050510499
type: object
10506-
CloudWorkloadSecurityAgentRuleActionSetValue:
10507-
description: The value of the set action
10508-
oneOf:
10509-
- type: string
10510-
- type: integer
10511-
- type: boolean
1051210500
CloudWorkloadSecurityAgentRuleActions:
1051310501
description: The array of actions the rule can perform if triggered
1051410502
items:
@@ -24783,6 +24771,30 @@ components:
2478324771
required:
2478424772
- data
2478524773
type: object
24774+
GetSuppressionVersionHistoryData:
24775+
description: Data for the suppression version history.
24776+
properties:
24777+
attributes:
24778+
$ref: '#/components/schemas/SuppressionVersionHistory'
24779+
id:
24780+
description: ID of the suppression.
24781+
type: string
24782+
type:
24783+
$ref: '#/components/schemas/GetSuppressionVersionHistoryDataType'
24784+
type: object
24785+
GetSuppressionVersionHistoryDataType:
24786+
description: Type of data.
24787+
enum:
24788+
- suppression_version_history
24789+
type: string
24790+
x-enum-varnames:
24791+
- SUPPRESSIONVERSIONHISTORY
24792+
GetSuppressionVersionHistoryResponse:
24793+
description: Response for getting the suppression version history.
24794+
properties:
24795+
data:
24796+
$ref: '#/components/schemas/GetSuppressionVersionHistoryData'
24797+
type: object
2478624798
GetTeamMembershipsSort:
2478724799
description: Specifies the order of returned team memberships
2478824800
enum:
@@ -44488,38 +44500,13 @@ components:
4448844500
description: The `RuleVersionHistory` `data`.
4448944501
type: object
4449044502
type: object
44491-
RuleVersionUpdate:
44492-
description: A change in a rule version.
44493-
properties:
44494-
change:
44495-
description: The new value of the field.
44496-
example: cloud_provider:aws
44497-
type: string
44498-
field:
44499-
description: The field that was changed.
44500-
example: Tags
44501-
type: string
44502-
type:
44503-
$ref: '#/components/schemas/RuleVersionUpdateType'
44504-
type: object
44505-
RuleVersionUpdateType:
44506-
description: The type of change.
44507-
enum:
44508-
- create
44509-
- update
44510-
- delete
44511-
type: string
44512-
x-enum-varnames:
44513-
- CREATE
44514-
- UPDATE
44515-
- DELETE
4451644503
RuleVersions:
4451744504
description: A rule version with a list of updates.
4451844505
properties:
4451944506
changes:
4452044507
description: A list of changes.
4452144508
items:
44522-
$ref: '#/components/schemas/RuleVersionUpdate'
44509+
$ref: '#/components/schemas/VersionHistoryUpdate'
4452344510
type: array
4452444511
rule:
4452544512
$ref: '#/components/schemas/SecurityMonitoringRuleResponse'
@@ -53079,6 +53066,32 @@ components:
5307953066
format: double
5308053067
type: number
5308153068
type: object
53069+
SuppressionVersionHistory:
53070+
description: Response object containing the version history of a suppression.
53071+
properties:
53072+
count:
53073+
description: The number of suppression versions.
53074+
format: int32
53075+
maximum: 2147483647
53076+
type: integer
53077+
data:
53078+
additionalProperties:
53079+
$ref: '#/components/schemas/SuppressionVersions'
53080+
description: A suppression version with a list of updates.
53081+
description: The version history of a suppression.
53082+
type: object
53083+
type: object
53084+
SuppressionVersions:
53085+
description: A suppression version with a list of updates.
53086+
properties:
53087+
changes:
53088+
description: A list of changes.
53089+
items:
53090+
$ref: '#/components/schemas/VersionHistoryUpdate'
53091+
type: array
53092+
suppression:
53093+
$ref: '#/components/schemas/SecurityMonitoringSuppressionAttributes'
53094+
type: object
5308253095
TableResultV2:
5308353096
description: A reference table resource containing its full configuration and
5308453097
state.
@@ -57409,6 +57422,31 @@ components:
5740957422
example: 1
5741057423
format: int64
5741157424
type: integer
57425+
VersionHistoryUpdate:
57426+
description: A change in a rule version.
57427+
properties:
57428+
change:
57429+
description: The new value of the field.
57430+
example: cloud_provider:aws
57431+
type: string
57432+
field:
57433+
description: The field that was changed.
57434+
example: Tags
57435+
type: string
57436+
type:
57437+
$ref: '#/components/schemas/VersionHistoryUpdateType'
57438+
type: object
57439+
VersionHistoryUpdateType:
57440+
description: The type of change.
57441+
enum:
57442+
- create
57443+
- update
57444+
- delete
57445+
type: string
57446+
x-enum-varnames:
57447+
- CREATE
57448+
- UPDATE
57449+
- DELETE
5741257450
VirusTotalAPIKey:
5741357451
description: The definition of the `VirusTotalAPIKey` object.
5741457452
properties:
@@ -68258,6 +68296,7 @@ paths:
6825868296
- us3.datadoghq.com
6825968297
- us5.datadoghq.com
6826068298
- ap1.datadoghq.com
68299+
- ap2.datadoghq.com
6826168300
- datadoghq.eu
6826268301
- ddog-gov.com
6826368302
subdomain:
@@ -83252,6 +83291,36 @@ paths:
8325283291
tags:
8325383292
- Security Monitoring
8325483293
x-menu-order: 0
83294+
/api/v2/security_monitoring/configuration/suppressions/{suppression_id}/version_history:
83295+
get:
83296+
description: Get a suppression's version history.
83297+
operationId: GetSuppressionVersionHistory
83298+
parameters:
83299+
- $ref: '#/components/parameters/SecurityMonitoringSuppressionID'
83300+
- $ref: '#/components/parameters/PageSize'
83301+
- $ref: '#/components/parameters/PageNumber'
83302+
responses:
83303+
'200':
83304+
content:
83305+
application/json:
83306+
schema:
83307+
$ref: '#/components/schemas/GetSuppressionVersionHistoryResponse'
83308+
description: OK
83309+
'403':
83310+
$ref: '#/components/responses/NotAuthorizedResponse'
83311+
'404':
83312+
$ref: '#/components/responses/NotFoundResponse'
83313+
'429':
83314+
$ref: '#/components/responses/TooManyRequestsResponse'
83315+
security:
83316+
- apiKeyAuth: []
83317+
appKeyAuth: []
83318+
- AuthZ:
83319+
- security_monitoring_suppressions_read
83320+
summary: Get a suppression's version history
83321+
tags:
83322+
- Security Monitoring
83323+
x-menu-order: 0
8325583324
/api/v2/security_monitoring/rules:
8325683325
get:
8325783326
description: List rules.

data/api/v2/translate_actions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2796,6 +2796,10 @@
27962796
"request_description": "New definition of the suppression rule. Supports partial updates.",
27972797
"request_schema_description": "Request object containing the fields to update on the suppression rule."
27982798
},
2799+
"GetSuppressionVersionHistory": {
2800+
"description": "Get a suppression's version history.",
2801+
"summary": "Get a suppression's version history"
2802+
},
27992803
"ListSecurityMonitoringRules": {
28002804
"description": "List rules.",
28012805
"summary": "List rules"

0 commit comments

Comments
 (0)