diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 3338e02c29d..43a50e9415d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -254361,6 +254361,10 @@ paths: description: |- 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/). + This endpoint takes the query, sort, and pagination as URL query parameters. `SearchSecurityFindings` (`POST /api/v2/security/findings/search`) accepts the same parameters in a JSON request body and returns the same results, so pick by how you want to send them. Use this endpoint when the query fits easily in a URL. To send the query in a JSON body without URL encoding, use `SearchSecurityFindings` instead. A `meta.page.after` cursor from either endpoint works on the other. + + Use this endpoint rather than `ListFindings` (`GET /api/v2/posture_management/findings`), which uses the legacy security findings data model and is planned for deprecation. + ### Query Syntax 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. @@ -257567,6 +257571,10 @@ paths: description: |- 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/). + This endpoint takes the query, sort, and pagination in a JSON request body. `ListSecurityFindings` (`GET /api/v2/security/findings`) accepts the same parameters as URL query parameters and returns the same results, so pick by how you want to send them. Use this endpoint to send the query without URL encoding, for example when it has many quotes, parentheses, or spaces. To get the next page, send `meta.page.after` as `data.attributes.page.cursor` in the request body. The `links.next` URL always points to `ListSecurityFindings`, with the query in the URL. + + Use this endpoint rather than `ListFindings` (`GET /api/v2/posture_management/findings`), which uses the legacy security findings data model and is planned for deprecation. + ### Query Syntax 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. diff --git a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java index 59ea99e9a66..ca1121845f9 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java @@ -22913,6 +22913,17 @@ public PaginationIterable listSecurityFindingsWithPaginati * href="https://docs.datadoghq.com/security/guide/findings-schema/">See the schema for security * findings. * + *

This endpoint takes the query, sort, and pagination as URL query parameters. + * SearchSecurityFindings (POST /api/v2/security/findings/search) accepts the + * same parameters in a JSON request body and returns the same results, so pick by how you want to + * send them. Use this endpoint when the query fits easily in a URL. To send the query in a JSON + * body without URL encoding, use SearchSecurityFindings instead. A + * meta.page.after cursor from either endpoint works on the other. + * + *

Use this endpoint rather than ListFindings ( + * GET /api/v2/posture_management/findings), which uses the legacy security findings data + * model and is planned for deprecation. + * *

Query Syntax

* *

This endpoint uses the logs query syntax. Findings attributes (living in the @@ -30336,6 +30347,18 @@ public PaginationIterable searchSecurityFindingsWithPagina * href="https://docs.datadoghq.com/security/guide/findings-schema/">See the schema for security * findings. * + *

This endpoint takes the query, sort, and pagination in a JSON request body. + * ListSecurityFindings (GET /api/v2/security/findings) accepts the same + * parameters as URL query parameters and returns the same results, so pick by how you want to + * send them. Use this endpoint to send the query without URL encoding, for example when it has + * many quotes, parentheses, or spaces. To get the next page, send meta.page.after as + * data.attributes.page.cursor in the request body. The links.next URL + * always points to ListSecurityFindings, with the query in the URL. + * + *

Use this endpoint rather than ListFindings ( + * GET /api/v2/posture_management/findings), which uses the legacy security findings data + * model and is planned for deprecation. + * *

Query Syntax

* *

The API uses the logs query syntax. Findings attributes (living in the