Skip to content

Commit 3267658

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 (#3033)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 8c64fec commit 3267658

File tree

3 files changed

+35
-8
lines changed

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

src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5675,6 +5675,7 @@ public static class ListFindingsOptionalParameters {
56755675
private String filterRuleId;
56765676
private String filterRuleName;
56775677
private String filterResourceType;
5678+
private String filterResourceId;
56785679
private String filterDiscoveryTimestamp;
56795680
private FindingEvaluation filterEvaluation;
56805681
private FindingStatus filterStatus;
@@ -5785,6 +5786,17 @@ public ListFindingsOptionalParameters filterResourceType(String filterResourceTy
57855786
return this;
57865787
}
57875788

5789+
/**
5790+
* Set filterResourceId.
5791+
*
5792+
* @param filterResourceId Return only findings for the specified resource id. (optional)
5793+
* @return ListFindingsOptionalParameters
5794+
*/
5795+
public ListFindingsOptionalParameters filterResourceId(String filterResourceId) {
5796+
this.filterResourceId = filterResourceId;
5797+
return this;
5798+
}
5799+
57885800
/**
57895801
* Set filterDiscoveryTimestamp.
57905802
*
@@ -6004,6 +6016,8 @@ public PaginationIterable<Finding> listFindingsWithPagination(
60046016
* <p>The following fields are available for findings: - <code>external_id</code>: The resource
60056017
* external ID related to the finding. - <code>description</code>: The description and remediation
60066018
* steps for the finding. - <code>datadog_link</code>: The Datadog relative link for the finding.
6019+
* - <code>ip_addresses</code>: The list of private IP addresses for the resource related to the
6020+
* finding.
60076021
*
60086022
* <h3>Response</h3>
60096023
*
@@ -6054,6 +6068,7 @@ public ApiResponse<ListFindingsResponse> listFindingsWithHttpInfo(
60546068
String filterRuleId = parameters.filterRuleId;
60556069
String filterRuleName = parameters.filterRuleName;
60566070
String filterResourceType = parameters.filterResourceType;
6071+
String filterResourceId = parameters.filterResourceId;
60576072
String filterDiscoveryTimestamp = parameters.filterDiscoveryTimestamp;
60586073
FindingEvaluation filterEvaluation = parameters.filterEvaluation;
60596074
FindingStatus filterStatus = parameters.filterStatus;
@@ -6077,6 +6092,8 @@ public ApiResponse<ListFindingsResponse> listFindingsWithHttpInfo(
60776092
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[rule_name]", filterRuleName));
60786093
localVarQueryParams.addAll(
60796094
apiClient.parameterToPairs("", "filter[resource_type]", filterResourceType));
6095+
localVarQueryParams.addAll(
6096+
apiClient.parameterToPairs("", "filter[@resource_id]", filterResourceId));
60806097
localVarQueryParams.addAll(
60816098
apiClient.parameterToPairs("", "filter[discovery_timestamp]", filterDiscoveryTimestamp));
60826099
localVarQueryParams.addAll(
@@ -6137,6 +6154,7 @@ public CompletableFuture<ApiResponse<ListFindingsResponse>> listFindingsWithHttp
61376154
String filterRuleId = parameters.filterRuleId;
61386155
String filterRuleName = parameters.filterRuleName;
61396156
String filterResourceType = parameters.filterResourceType;
6157+
String filterResourceId = parameters.filterResourceId;
61406158
String filterDiscoveryTimestamp = parameters.filterDiscoveryTimestamp;
61416159
FindingEvaluation filterEvaluation = parameters.filterEvaluation;
61426160
FindingStatus filterStatus = parameters.filterStatus;
@@ -6160,6 +6178,8 @@ public CompletableFuture<ApiResponse<ListFindingsResponse>> listFindingsWithHttp
61606178
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[rule_name]", filterRuleName));
61616179
localVarQueryParams.addAll(
61626180
apiClient.parameterToPairs("", "filter[resource_type]", filterResourceType));
6181+
localVarQueryParams.addAll(
6182+
apiClient.parameterToPairs("", "filter[@resource_id]", filterResourceId));
61636183
localVarQueryParams.addAll(
61646184
apiClient.parameterToPairs("", "filter[discovery_timestamp]", filterDiscoveryTimestamp));
61656185
localVarQueryParams.addAll(

0 commit comments

Comments
 (0)