Skip to content

Commit a987999

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 (#2569)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 6b9db6e commit a987999

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-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:26.502"
2+
"spec_repo_commit": "dcf594e",
3+
"generated": "2025-07-31 09:55:36.354"
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/scenarios_model_mapping.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,7 @@
12131213
"filter_rule_id" => "String",
12141214
"filter_rule_name" => "String",
12151215
"filter_resource_type" => "String",
1216+
"filter_resource_id" => "String",
12161217
"filter_discovery_timestamp" => "String",
12171218
"filter_evaluation" => "FindingEvaluation",
12181219
"filter_status" => "FindingStatus",

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,6 +2491,7 @@ def list_findings(opts = {})
24912491
# - `external_id`: The resource external ID related to the finding.
24922492
# - `description`: The description and remediation steps for the finding.
24932493
# - `datadog_link`: The Datadog relative link for the finding.
2494+
# - `ip_addresses`: The list of private IP addresses for the resource related to the finding.
24942495
#
24952496
# ### Response
24962497
#
@@ -2514,6 +2515,7 @@ def list_findings(opts = {})
25142515
# @option opts [String] :filter_rule_id Return findings for the specified rule ID.
25152516
# @option opts [String] :filter_rule_name Return findings for the specified rule.
25162517
# @option opts [String] :filter_resource_type Return only findings for the specified resource type.
2518+
# @option opts [String] :filter_resource_id Return only findings for the specified resource id.
25172519
# @option opts [String] :filter_discovery_timestamp Return findings that were found on a specified date (Unix ms) or date range (using comparison operators).
25182520
# @option opts [FindingEvaluation] :filter_evaluation Return only `pass` or `fail` findings.
25192521
# @option opts [FindingStatus] :filter_status Return only findings with the specified status.
@@ -2562,6 +2564,7 @@ def list_findings_with_http_info(opts = {})
25622564
query_params[:'filter[rule_id]'] = opts[:'filter_rule_id'] if !opts[:'filter_rule_id'].nil?
25632565
query_params[:'filter[rule_name]'] = opts[:'filter_rule_name'] if !opts[:'filter_rule_name'].nil?
25642566
query_params[:'filter[resource_type]'] = opts[:'filter_resource_type'] if !opts[:'filter_resource_type'].nil?
2567+
query_params[:'filter[@resource_id]'] = opts[:'filter_resource_id'] if !opts[:'filter_resource_id'].nil?
25652568
query_params[:'filter[discovery_timestamp]'] = opts[:'filter_discovery_timestamp'] if !opts[:'filter_discovery_timestamp'].nil?
25662569
query_params[:'filter[evaluation]'] = opts[:'filter_evaluation'] if !opts[:'filter_evaluation'].nil?
25672570
query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?

0 commit comments

Comments
 (0)