Skip to content

Commit 4994390

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

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-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.

lib/datadog_api_client/v2/api/security_monitoring_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4878,6 +4878,8 @@ def list_vulnerabilities(opts = {})
48784878
#
48794879
# Extensions can only include one value: `ext:modifier=value`.
48804880
#
4881+
# @deprecated This API is deprecated.
4882+
#
48814883
# @param opts [Hash] the optional parameters
48824884
# @option opts [String] :page_token Its value must come from the `links` section of the response of the first request. Do not manually edit it.
48834885
# @option opts [Integer] :page_number The page number to be retrieved. It should be equal or greater than `1`
@@ -4924,6 +4926,7 @@ def list_vulnerabilities(opts = {})
49244926
# @option opts [String] :filter_asset_operating_system_version Filter by asset operating system version.
49254927
# @return [Array<(ListVulnerabilitiesResponse, Integer, Hash)>] ListVulnerabilitiesResponse data, response status code and response headers
49264928
def list_vulnerabilities_with_http_info(opts = {})
4929+
warn "[DEPRECATION] `ListVulnerabilities` is deprecated."
49274930
unstable_enabled = @api_client.config.unstable_operations["v2.list_vulnerabilities".to_sym]
49284931
if unstable_enabled
49294932
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_vulnerabilities")

0 commit comments

Comments
 (0)