Skip to content

Commit 33be844

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Deprecate ListVulnerabilities endpoint (#3333)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 454d9ec commit 33be844

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
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/datadog_api_client/v2/api/security_monitoring_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import collections
77
from typing import Any, Dict, List, Union
8+
import warnings
89

910
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
1011
from datadog_api_client.configuration import Configuration
@@ -4628,7 +4629,7 @@ def list_vulnerabilities(
46284629
filter_asset_operating_system_name: Union[str, UnsetType] = unset,
46294630
filter_asset_operating_system_version: Union[str, UnsetType] = unset,
46304631
) -> ListVulnerabilitiesResponse:
4631-
"""List vulnerabilities.
4632+
"""List vulnerabilities. **Deprecated**.
46324633
46334634
Get a list of vulnerabilities.
46344635
@@ -4938,6 +4939,7 @@ def list_vulnerabilities(
49384939
if filter_asset_operating_system_version is not unset:
49394940
kwargs["filter_asset_operating_system_version"] = filter_asset_operating_system_version
49404941

4942+
warnings.warn("list_vulnerabilities is deprecated", DeprecationWarning, stacklevel=2)
49414943
return self._list_vulnerabilities_endpoint.call_with_http_info(**kwargs)
49424944

49434945
def list_vulnerable_assets(

0 commit comments

Comments
 (0)