Skip to content

Commit 19f914a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Vulnerabilities endpoints GA - Remove x-unstable (#2389)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d7bcccd commit 19f914a

16 files changed

+24
-46
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-02-03 18:38:34.199729",
8-
"spec_repo_commit": "325cdedf"
7+
"regenerated": "2025-02-03 19:47:11.750487",
8+
"spec_repo_commit": "b52549d9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-03 18:38:34.214551",
13-
"spec_repo_commit": "325cdedf"
12+
"regenerated": "2025-02-03 19:47:11.767977",
13+
"spec_repo_commit": "b52549d9"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43976,9 +43976,6 @@ paths:
4397643976
summary: List vulnerable assets
4397743977
tags:
4397843978
- Security Monitoring
43979-
x-unstable: '**Note**: This endpoint is a private preview.
43980-
43981-
If you are interested in accessing this API, please [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
4398243979
/api/v2/security/cloud_workload/policy/download:
4398343980
get:
4398443981
description: 'The download endpoint generates a Cloud Workload Security policy
@@ -44071,9 +44068,6 @@ paths:
4407144068
summary: Get SBOM
4407244069
tags:
4407344070
- Security Monitoring
44074-
x-unstable: '**Note**: This endpoint is a private preview.
44075-
44076-
If you are interested in accessing this API, please [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
4407744071
/api/v2/security/signals/notification_rules:
4407844072
get:
4407944073
description: Returns the list of notification rules for security signals.
@@ -44632,9 +44626,6 @@ paths:
4463244626
summary: List vulnerabilities
4463344627
tags:
4463444628
- Security Monitoring
44635-
x-unstable: '**Note**: This endpoint is a private preview.
44636-
44637-
If you are interested in accessing this API, please [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
4463844629
/api/v2/security/vulnerabilities/notification_rules:
4463944630
get:
4464044631
description: Returns the list of notification rules for security vulnerabilities.

examples/v2/security-monitoring/GetSBOM.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from datadog_api_client.v2.model.asset_type import AssetType
88

99
configuration = Configuration()
10-
configuration.unstable_operations["get_sbom"] = True
1110
with ApiClient(configuration) as api_client:
1211
api_instance = SecurityMonitoringApi(api_client)
1312
response = api_instance.get_sbom(

examples/v2/security-monitoring/ListVulnerabilities.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from datadog_api_client.v2.model.vulnerability_tool import VulnerabilityTool
1010

1111
configuration = Configuration()
12-
configuration.unstable_operations["list_vulnerabilities"] = True
1312
with ApiClient(configuration) as api_client:
1413
api_instance = SecurityMonitoringApi(api_client)
1514
response = api_instance.list_vulnerabilities(

examples/v2/security-monitoring/ListVulnerableAssets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from datadog_api_client.v2.model.asset_type import AssetType
88

99
configuration = Configuration()
10-
configuration.unstable_operations["list_vulnerable_assets"] = True
1110
with ApiClient(configuration) as api_client:
1211
api_instance = SecurityMonitoringApi(api_client)
1312
response = api_instance.list_vulnerable_assets(

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,8 @@ def __init__(
290290
"v2.delete_historical_job": False,
291291
"v2.get_finding": False,
292292
"v2.get_historical_job": False,
293-
"v2.get_sbom": False,
294293
"v2.list_findings": False,
295294
"v2.list_historical_jobs": False,
296-
"v2.list_vulnerabilities": False,
297-
"v2.list_vulnerable_assets": False,
298295
"v2.mute_findings": False,
299296
"v2.run_historical_job": False,
300297
"v2.create_scorecard_outcomes_batch": False,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-15T14:19:46.527Z
1+
2025-01-31T12:04:00.490Z
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-01-17T13:12:50.575Z
1+
2025-01-31T12:04:14.913Z

tests/v2/cassettes/test_scenarios/test_get_sbom_returns_ok_response.yaml

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-19T16:15:23.508Z
1+
2025-01-31T12:04:28.397Z

tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ interactions:
88
uri: https://api.datadoghq.com/api/v2/security/vulnerabilities?page%5Btoken%5D=unknown&page%5Bnumber%5D=1
99
response:
1010
body:
11-
string: '{"errors":[{"status":"404","title":"Not Found"}]}'
11+
string: '{"errors":[{"title":"Generic Error","detail":"rpc error: code = Internal
12+
desc = no cached result set found for queryID: unknown"}]}'
1213
headers:
1314
content-type:
1415
- application/vnd.api+json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-19T16:15:24.088Z
1+
2025-01-31T12:04:39.730Z
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-19T16:15:24.530Z
1+
2025-01-31T12:04:52.159Z

tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ interactions:
88
uri: https://api.datadoghq.com/api/v2/security/assets?page%5Btoken%5D=unknown&page%5Bnumber%5D=1
99
response:
1010
body:
11-
string: '{"errors":[{"status":"404","title":"Not Found"}]}'
11+
string: '{"errors":[{"title":"Generic Error","detail":"rpc error: code = Internal
12+
desc = no cached result set found for queryID: unknown"}]}'
1213
headers:
1314
content-type:
1415
- application/vnd.api+json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-12-19T16:15:24.699Z
1+
2025-01-31T12:05:04.773Z

tests/v2/features/security_monitoring.feature

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -447,26 +447,23 @@ Feature: Security Monitoring
447447

448448
@generated @skip @team:DataDog/asm-vm
449449
Scenario: Get SBOM returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
450-
Given operation "GetSBOM" enabled
451-
And new "GetSBOM" request
450+
Given new "GetSBOM" request
452451
And request contains "asset_type" parameter from "REPLACE.ME"
453452
And request contains "filter[asset_name]" parameter from "REPLACE.ME"
454453
When the request is sent
455454
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
456455

457456
@team:DataDog/asm-vm
458457
Scenario: Get SBOM returns "Not found: asset not found" response
459-
Given operation "GetSBOM" enabled
460-
And new "GetSBOM" request
458+
Given new "GetSBOM" request
461459
And request contains "asset_type" parameter with value "Host"
462460
And request contains "filter[asset_name]" parameter with value "unknown-host"
463461
When the request is sent
464462
Then the response status is 404 Not found: asset not found
465463

466464
@team:DataDog/asm-vm
467465
Scenario: Get SBOM returns "OK" response
468-
Given operation "GetSBOM" enabled
469-
And new "GetSBOM" request
466+
Given new "GetSBOM" request
470467
And request contains "asset_type" parameter with value "Repository"
471468
And request contains "filter[asset_name]" parameter with value "github.com/datadog/datadog-agent"
472469
When the request is sent
@@ -783,24 +780,21 @@ Feature: Security Monitoring
783780

784781
@generated @skip @team:DataDog/asm-vm
785782
Scenario: List vulnerabilities returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
786-
Given operation "ListVulnerabilities" enabled
787-
And new "ListVulnerabilities" request
783+
Given new "ListVulnerabilities" request
788784
When the request is sent
789785
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
790786

791787
@team:DataDog/asm-vm
792788
Scenario: List vulnerabilities returns "Not found: There is no request associated with the provided token." response
793-
Given operation "ListVulnerabilities" enabled
794-
And new "ListVulnerabilities" request
789+
Given new "ListVulnerabilities" request
795790
And request contains "page[token]" parameter with value "unknown"
796791
And request contains "page[number]" parameter with value 1
797792
When the request is sent
798793
Then the response status is 404 Not found: There is no request associated with the provided token.
799794

800795
@team:DataDog/asm-vm
801796
Scenario: List vulnerabilities returns "OK" response
802-
Given operation "ListVulnerabilities" enabled
803-
And new "ListVulnerabilities" request
797+
Given new "ListVulnerabilities" request
804798
And request contains "filter[cvss.base.severity]" parameter with value "High"
805799
And request contains "filter[asset.type]" parameter with value "Service"
806800
And request contains "filter[tool]" parameter with value "Infra"
@@ -809,24 +803,21 @@ Feature: Security Monitoring
809803

810804
@generated @skip @team:DataDog/asm-vm
811805
Scenario: List vulnerable assets returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
812-
Given operation "ListVulnerableAssets" enabled
813-
And new "ListVulnerableAssets" request
806+
Given new "ListVulnerableAssets" request
814807
When the request is sent
815808
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.
816809

817810
@team:DataDog/asm-vm
818811
Scenario: List vulnerable assets returns "Not found: There is no request associated with the provided token." response
819-
Given operation "ListVulnerableAssets" enabled
820-
And new "ListVulnerableAssets" request
812+
Given new "ListVulnerableAssets" request
821813
And request contains "page[token]" parameter with value "unknown"
822814
And request contains "page[number]" parameter with value 1
823815
When the request is sent
824816
Then the response status is 404 Not found: There is no request associated with the provided token.
825817

826818
@team:DataDog/asm-vm
827819
Scenario: List vulnerable assets returns "OK" response
828-
Given operation "ListVulnerableAssets" enabled
829-
And new "ListVulnerableAssets" request
820+
Given new "ListVulnerableAssets" request
830821
And request contains "filter[type]" parameter with value "Host"
831822
And request contains "filter[repository_url]" parameter with value "github.com/datadog/dd-go"
832823
And request contains "filter[risks.in_production]" parameter with value true

0 commit comments

Comments
 (0)