Skip to content

Commit 2bec2d1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Extended List Findings API to expose resource related Private IP Addresses to details (#2585)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e62525a commit 2bec2d1

File tree

4 files changed

+35
-8
lines changed

4 files changed

+35
-8
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "df31e44",
3-
"generated": "2025-07-28 19:54:18.363"
2+
"spec_repo_commit": "dcf594e",
3+
"generated": "2025-07-31 09:55:32.454"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56012,12 +56012,13 @@ paths:
5601256012
following fields are available for findings:\n- `external_id`: The resource
5601356013
external ID related to the finding.\n- `description`: The description and
5601456014
remediation steps for the finding.\n- `datadog_link`: The Datadog relative
56015-
link for the finding.\n\n### Response\n\nThe response includes an array of
56016-
finding objects, pagination metadata, and a count of items that match the
56017-
query.\n\nEach finding object contains the following:\n\n- The finding ID
56018-
that can be used in a `GetFinding` request to retrieve the full finding details.\n-
56019-
Core attributes, including status, evaluation, high-level resource details,
56020-
muted state, and rule details.\n- `evaluation_changed_at` and `resource_discovery_date`
56015+
link for the finding.\n- `ip_addresses`: The list of private IP addresses
56016+
for the resource related to the finding.\n\n### Response\n\nThe response includes
56017+
an array of finding objects, pagination metadata, and a count of items that
56018+
match the query.\n\nEach finding object contains the following:\n\n- The finding
56019+
ID that can be used in a `GetFinding` request to retrieve the full finding
56020+
details.\n- Core attributes, including status, evaluation, high-level resource
56021+
details, muted state, and rule details.\n- `evaluation_changed_at` and `resource_discovery_date`
5602156022
time stamps.\n- An array of associated tags.\n"
5602256023
operationId: ListFindings
5602356024
parameters:
@@ -56088,6 +56089,12 @@ paths:
5608856089
required: false
5608956090
schema:
5609056091
type: string
56092+
- description: Return only findings for the specified resource id.
56093+
in: query
56094+
name: filter[@resource_id]
56095+
required: false
56096+
schema:
56097+
type: string
5609156098
- description: Return findings that were found on a specified date (Unix ms)
5609256099
or date range (using comparison operators).
5609356100
example: '>=1678721573794'

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3422,6 +3422,10 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
34223422
type: "string",
34233423
format: "",
34243424
},
3425+
filterResourceId: {
3426+
type: "string",
3427+
format: "",
3428+
},
34253429
filterDiscoveryTimestamp: {
34263430
type: "string",
34273431
format: "",

services/security_monitoring/src/v2/SecurityMonitoringApi.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,6 +2014,7 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
20142014
filterRuleId?: string,
20152015
filterRuleName?: string,
20162016
filterResourceType?: string,
2017+
filterResourceId?: string,
20172018
filterDiscoveryTimestamp?: string,
20182019
filterEvaluation?: FindingEvaluation,
20192020
filterStatus?: FindingStatus,
@@ -2114,6 +2115,13 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
21142115
"",
21152116
);
21162117
}
2118+
if (filterResourceId !== undefined) {
2119+
requestContext.setQueryParam(
2120+
"filter[@resource_id]",
2121+
serialize(filterResourceId, TypingInfo, "string", ""),
2122+
"",
2123+
);
2124+
}
21172125
if (filterDiscoveryTimestamp !== undefined) {
21182126
requestContext.setQueryParam(
21192127
"filter[discovery_timestamp]",
@@ -7619,6 +7627,11 @@ export interface SecurityMonitoringApiListFindingsRequest {
76197627
* @type string
76207628
*/
76217629
filterResourceType?: string;
7630+
/**
7631+
* Return only findings for the specified resource id.
7632+
* @type string
7633+
*/
7634+
filterResourceId?: string;
76227635
/**
76237636
* Return findings that were found on a specified date (Unix ms) or date range (using comparison operators).
76247637
* @type string
@@ -9023,6 +9036,7 @@ export class SecurityMonitoringApi {
90239036
* - `external_id`: The resource external ID related to the finding.
90249037
* - `description`: The description and remediation steps for the finding.
90259038
* - `datadog_link`: The Datadog relative link for the finding.
9039+
* - `ip_addresses`: The list of private IP addresses for the resource related to the finding.
90269040
*
90279041
* ### Response
90289042
*
@@ -9050,6 +9064,7 @@ export class SecurityMonitoringApi {
90509064
param.filterRuleId,
90519065
param.filterRuleName,
90529066
param.filterResourceType,
9067+
param.filterResourceId,
90539068
param.filterDiscoveryTimestamp,
90549069
param.filterEvaluation,
90559070
param.filterStatus,
@@ -9089,6 +9104,7 @@ export class SecurityMonitoringApi {
90899104
param.filterRuleId,
90909105
param.filterRuleName,
90919106
param.filterResourceType,
9107+
param.filterResourceId,
90929108
param.filterDiscoveryTimestamp,
90939109
param.filterEvaluation,
90949110
param.filterStatus,

0 commit comments

Comments
 (0)