Skip to content

Commit b92660b

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 (#2586)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 4b9f304 commit b92660b

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:55:46.645"
2+
"spec_repo_commit": "dcf594e",
3+
"generated": "2025-07-31 09:56:45.381"
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'

features/support/scenarios_model_mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3412,6 +3412,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
34123412
"type": "string",
34133413
"format": "",
34143414
},
3415+
"filterResourceId": {
3416+
"type": "string",
3417+
"format": "",
3418+
},
34153419
"filterDiscoveryTimestamp": {
34163420
"type": "string",
34173421
"format": "",

packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,6 +1620,7 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
16201620
filterRuleId?: string,
16211621
filterRuleName?: string,
16221622
filterResourceType?: string,
1623+
filterResourceId?: string,
16231624
filterDiscoveryTimestamp?: string,
16241625
filterEvaluation?: FindingEvaluation,
16251626
filterStatus?: FindingStatus,
@@ -1708,6 +1709,13 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
17081709
""
17091710
);
17101711
}
1712+
if (filterResourceId !== undefined) {
1713+
requestContext.setQueryParam(
1714+
"filter[@resource_id]",
1715+
ObjectSerializer.serialize(filterResourceId, "string", ""),
1716+
""
1717+
);
1718+
}
17111719
if (filterDiscoveryTimestamp !== undefined) {
17121720
requestContext.setQueryParam(
17131721
"filter[discovery_timestamp]",
@@ -7257,6 +7265,11 @@ export interface SecurityMonitoringApiListFindingsRequest {
72577265
* @type string
72587266
*/
72597267
filterResourceType?: string;
7268+
/**
7269+
* Return only findings for the specified resource id.
7270+
* @type string
7271+
*/
7272+
filterResourceId?: string;
72607273
/**
72617274
* Return findings that were found on a specified date (Unix ms) or date range (using comparison operators).
72627275
* @type string
@@ -8656,6 +8669,7 @@ export class SecurityMonitoringApi {
86568669
* - `external_id`: The resource external ID related to the finding.
86578670
* - `description`: The description and remediation steps for the finding.
86588671
* - `datadog_link`: The Datadog relative link for the finding.
8672+
* - `ip_addresses`: The list of private IP addresses for the resource related to the finding.
86598673
*
86608674
* ### Response
86618675
*
@@ -8683,6 +8697,7 @@ export class SecurityMonitoringApi {
86838697
param.filterRuleId,
86848698
param.filterRuleName,
86858699
param.filterResourceType,
8700+
param.filterResourceId,
86868701
param.filterDiscoveryTimestamp,
86878702
param.filterEvaluation,
86888703
param.filterStatus,
@@ -8722,6 +8737,7 @@ export class SecurityMonitoringApi {
87228737
param.filterRuleId,
87238738
param.filterRuleName,
87248739
param.filterResourceType,
8740+
param.filterResourceId,
87258741
param.filterDiscoveryTimestamp,
87268742
param.filterEvaluation,
87278743
param.filterStatus,

0 commit comments

Comments
 (0)