Skip to content

Commit 51dd2bf

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Deprecate ListVulnerabilities endpoint (#3647)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 1cab2bb commit 51dd2bf

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101090,6 +101090,7 @@ paths:
101090101090
- security_monitoring_notification_profiles_write
101091101091
/api/v2/security/vulnerabilities:
101092101092
get:
101093+
deprecated: true
101093101094
description: |-
101094101095
Get a list of vulnerabilities.
101095101096

@@ -101531,9 +101532,9 @@ paths:
101531101532
operator: OR
101532101533
permissions:
101533101534
- appsec_vm_read
101535+
x-sunset: "2027-01-01"
101534101536
x-unstable: |-
101535-
**Note**: This endpoint is a private preview.
101536-
If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).
101537+
**Note**: This endpoint is deprecated. See the [List Security Findings endpoint](https://docs.datadoghq.com/api/latest/security-monitoring/#list-security-findings).
101537101538
/api/v2/security/vulnerabilities/notification_rules:
101538101539
get:
101539101540
description: Returns the list of notification rules for security vulnerabilities.

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12059,7 +12059,9 @@ public ListVulnerabilitiesOptionalParameters filterAssetOperatingSystemVersion(
1205912059
*
1206012060
* @return ListVulnerabilitiesResponse
1206112061
* @throws ApiException if fails to make API call
12062+
* @deprecated
1206212063
*/
12064+
@Deprecated
1206312065
public ListVulnerabilitiesResponse listVulnerabilities() throws ApiException {
1206412066
return listVulnerabilitiesWithHttpInfo(new ListVulnerabilitiesOptionalParameters()).getData();
1206512067
}
@@ -12070,7 +12072,9 @@ public ListVulnerabilitiesResponse listVulnerabilities() throws ApiException {
1207012072
* <p>See {@link #listVulnerabilitiesWithHttpInfoAsync}.
1207112073
*
1207212074
* @return CompletableFuture&lt;ListVulnerabilitiesResponse&gt;
12075+
* @deprecated
1207312076
*/
12077+
@Deprecated
1207412078
public CompletableFuture<ListVulnerabilitiesResponse> listVulnerabilitiesAsync() {
1207512079
return listVulnerabilitiesWithHttpInfoAsync(new ListVulnerabilitiesOptionalParameters())
1207612080
.thenApply(
@@ -12087,7 +12091,9 @@ public CompletableFuture<ListVulnerabilitiesResponse> listVulnerabilitiesAsync()
1208712091
* @param parameters Optional parameters for the request.
1208812092
* @return ListVulnerabilitiesResponse
1208912093
* @throws ApiException if fails to make API call
12094+
* @deprecated
1209012095
*/
12096+
@Deprecated
1209112097
public ListVulnerabilitiesResponse listVulnerabilities(
1209212098
ListVulnerabilitiesOptionalParameters parameters) throws ApiException {
1209312099
return listVulnerabilitiesWithHttpInfo(parameters).getData();
@@ -12100,7 +12106,9 @@ public ListVulnerabilitiesResponse listVulnerabilities(
1210012106
*
1210112107
* @param parameters Optional parameters for the request.
1210212108
* @return CompletableFuture&lt;ListVulnerabilitiesResponse&gt;
12109+
* @deprecated
1210312110
*/
12111+
@Deprecated
1210412112
public CompletableFuture<ListVulnerabilitiesResponse> listVulnerabilitiesAsync(
1210512113
ListVulnerabilitiesOptionalParameters parameters) {
1210612114
return listVulnerabilitiesWithHttpInfoAsync(parameters)
@@ -12237,7 +12245,10 @@ public CompletableFuture<ListVulnerabilitiesResponse> listVulnerabilitiesAsync(
1223712245
* <tr><td> 404 </td><td> Not found: There is no request associated with the provided token. </td><td> - </td></tr>
1223812246
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
1223912247
* </table>
12248+
*
12249+
* @deprecated
1224012250
*/
12251+
@Deprecated
1224112252
public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
1224212253
ListVulnerabilitiesOptionalParameters parameters) throws ApiException {
1224312254
// Check if unstable operation is enabled
@@ -12422,7 +12433,9 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
1242212433
*
1242312434
* @param parameters Optional parameters for the request.
1242412435
* @return CompletableFuture&lt;ApiResponse&lt;ListVulnerabilitiesResponse&gt;&gt;
12436+
* @deprecated
1242512437
*/
12438+
@Deprecated
1242612439
public CompletableFuture<ApiResponse<ListVulnerabilitiesResponse>>
1242712440
listVulnerabilitiesWithHttpInfoAsync(ListVulnerabilitiesOptionalParameters parameters) {
1242812441
// Check if unstable operation is enabled

0 commit comments

Comments
 (0)