Skip to content

Commit 9fc2eb5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update docs for Security Finding API endpoints (DataDog#3592)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 4e29eda commit 9fc2eb5

2 files changed

Lines changed: 25 additions & 11 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78107,7 +78107,13 @@ paths:
7810778107
cursorPath: meta.page.cursor
7810878108
limitParam: page[limit]
7810978109
resultsPath: data
78110-
x-unstable: '**Note**: This endpoint is in public beta.
78110+
x-unstable: '**Note**: This endpoint uses the legacy security findings data
78111+
model and is planned for deprecation.
78112+
78113+
Use the [search security findings endpoint](https://docs.datadoghq.com/api/latest/security-monitoring/#search-security-findings),
78114+
78115+
which is based on the [new security findings schema](https://docs.datadoghq.com/security/guide/findings-schema/),
78116+
to search security findings.
7811178117

7811278118
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
7811378119
patch:
@@ -78207,7 +78213,13 @@ paths:
7820778213
summary: Get a finding
7820878214
tags:
7820978215
- Security Monitoring
78210-
x-unstable: '**Note**: This endpoint is in public beta.
78216+
x-unstable: '**Note**: This endpoint uses the legacy security findings data
78217+
model and is planned for deprecation.
78218+
78219+
Use the [search security findings endpoint](https://docs.datadoghq.com/api/latest/security-monitoring/#search-security-findings),
78220+
78221+
which is based on the [new security findings schema](https://docs.datadoghq.com/security/guide/findings-schema/),
78222+
to search security findings.
7821178223

7821278224
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
7821378225
/api/v2/powerpacks:
@@ -82153,15 +82165,16 @@ paths:
8215382165
- security_monitoring_cws_agent_rules_read
8215482166
/api/v2/security/findings:
8215582167
get:
82156-
description: 'Get a list of security findings that match a search query.
82168+
description: 'Get a list of security findings that match a search query. [See
82169+
the schema for security findings](https://docs.datadoghq.com/security/guide/findings-schema/).
8215782170

8215882171

8215982172
### Query Syntax
8216082173

8216182174

8216282175
This endpoint uses the logs query syntax. Findings attributes (living in the
82163-
custom. namespace) are prefixed by @ when queried. Tags are queried without
82164-
a prefix.
82176+
attributes.attributes. namespace) are prefixed by @ when queried. Tags are
82177+
queried without a prefix.
8216582178

8216682179

8216782180
Example: `@severity:(critical OR high) @status:open team:platform`'
@@ -82452,13 +82465,14 @@ paths:
8245282465
Please check the documentation regularly for updates.'
8245382466
/api/v2/security/findings/search:
8245482467
post:
82455-
description: 'Get a list of security findings that match a search query.
82468+
description: 'Get a list of security findings that match a search query. [See
82469+
the schema for security findings](https://docs.datadoghq.com/security/guide/findings-schema/).
8245682470

8245782471

8245882472
### Query Syntax
8245982473

8246082474

82461-
The API uses the logs query syntax. Findings attributes (living in the custom.
82475+
The API uses the logs query syntax. Findings attributes (living in the attributes.attributes.
8246282476
namespace) are prefixed by @ when queried. Tags are queried without a prefix.
8246382477

8246482478

api/datadogV2/api_security_monitoring.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4873,11 +4873,11 @@ func (r *ListSecurityFindingsOptionalParameters) WithSort(sort SecurityFindingsS
48734873
}
48744874

48754875
// ListSecurityFindings List security findings.
4876-
// Get a list of security findings that match a search query.
4876+
// Get a list of security findings that match a search query. [See the schema for security findings](https://docs.datadoghq.com/security/guide/findings-schema/).
48774877
//
48784878
// ### Query Syntax
48794879
//
4880-
// This endpoint uses the logs query syntax. Findings attributes (living in the custom. namespace) are prefixed by @ when queried. Tags are queried without a prefix.
4880+
// This endpoint uses the logs query syntax. Findings attributes (living in the attributes.attributes. namespace) are prefixed by @ when queried. Tags are queried without a prefix.
48814881
//
48824882
// Example: `@severity:(critical OR high) @status:open team:platform`
48834883
func (a *SecurityMonitoringApi) ListSecurityFindings(ctx _context.Context, o ...ListSecurityFindingsOptionalParameters) (ListSecurityFindingsResponse, *_nethttp.Response, error) {
@@ -7064,11 +7064,11 @@ func (a *SecurityMonitoringApi) RunThreatHuntingJob(ctx _context.Context, body R
70647064
}
70657065

70667066
// SearchSecurityFindings Search security findings.
7067-
// Get a list of security findings that match a search query.
7067+
// Get a list of security findings that match a search query. [See the schema for security findings](https://docs.datadoghq.com/security/guide/findings-schema/).
70687068
//
70697069
// ### Query Syntax
70707070
//
7071-
// The API uses the logs query syntax. Findings attributes (living in the custom. namespace) are prefixed by @ when queried. Tags are queried without a prefix.
7071+
// The API uses the logs query syntax. Findings attributes (living in the attributes.attributes. namespace) are prefixed by @ when queried. Tags are queried without a prefix.
70727072
//
70737073
// Example: `@severity:(critical OR high) @status:open team:platform`
70747074
func (a *SecurityMonitoringApi) SearchSecurityFindings(ctx _context.Context, body SecurityFindingsSearchRequest) (ListSecurityFindingsResponse, *_nethttp.Response, error) {

0 commit comments

Comments
 (0)