Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87364,9 +87364,6 @@ paths:
operator: OR
permissions:
- appsec_vm_read
x-unstable: '**Note**: This endpoint is a private preview.

If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
/api/v2/security/sboms/{asset_type}:
get:
description: Get a single SBOM related to an asset by its type and name.
Expand Down Expand Up @@ -87439,9 +87436,6 @@ paths:
operator: OR
permissions:
- appsec_vm_read
x-unstable: '**Note**: This endpoint is a private preview.

If you are interested in accessing this API, [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
/api/v2/security/scanned-assets-metadata:
get:
description: "Get a list of security scanned assets metadata for an organization.\n\n###
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-02-10T11:40:12.098Z
2026-01-20T09:40:32.938Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-07-10T10:13:27.247Z
2026-01-20T08:26:52.182Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-07-10T10:11:37.540Z
2026-01-20T08:27:19.760Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions examples/v2/security-monitoring/GetSBOM.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Get SBOM returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.get_sbom".to_sym] = true
end
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
p api_instance.get_sbom(AssetType::REPOSITORY, "github.com/datadog/datadog-agent")
3 changes: 0 additions & 3 deletions examples/v2/security-monitoring/ListAssetsSBOMs.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# List assets SBOMs returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_assets_sbo_ms".to_sym] = true
end
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
opts = {
filter_package_name: "pandas",
Expand Down
21 changes: 7 additions & 14 deletions features/v2/security_monitoring.feature
Original file line number Diff line number Diff line change
Expand Up @@ -809,26 +809,23 @@ Feature: Security Monitoring

@generated @skip @team:DataDog/k9-cloud-vm
Scenario: Get SBOM returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
Given operation "GetSBOM" enabled
And new "GetSBOM" request
Given new "GetSBOM" request
And request contains "asset_type" parameter from "REPLACE.ME"
And request contains "filter[asset_name]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.

@team:DataDog/k9-cloud-vm
Scenario: Get SBOM returns "Not found: asset not found" response
Given operation "GetSBOM" enabled
And new "GetSBOM" request
Given new "GetSBOM" request
And request contains "asset_type" parameter with value "Host"
And request contains "filter[asset_name]" parameter with value "unknown-host"
When the request is sent
Then the response status is 404 Not found: asset not found

@skip @team:DataDog/k9-cloud-vm
Scenario: Get SBOM returns "OK" response
Given operation "GetSBOM" enabled
And new "GetSBOM" request
Given new "GetSBOM" request
And request contains "asset_type" parameter with value "Repository"
And request contains "filter[asset_name]" parameter with value "github.com/datadog/datadog-agent"
When the request is sent
Expand Down Expand Up @@ -1297,31 +1294,27 @@ Feature: Security Monitoring

@generated @skip @team:DataDog/k9-cloud-vm
Scenario: List assets SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
Given operation "ListAssetsSBOMs" enabled
And new "ListAssetsSBOMs" request
Given new "ListAssetsSBOMs" request
When the request is sent
Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request.

@team:DataDog/k9-cloud-vm
Scenario: List assets SBOMs returns "Not found: There is no request associated with the provided token." response
Given operation "ListAssetsSBOMs" enabled
And new "ListAssetsSBOMs" request
Given new "ListAssetsSBOMs" request
And request contains "page[token]" parameter with value "unknown"
And request contains "page[number]" parameter with value 1
When the request is sent
Then the response status is 404 Not found: There is no request associated with the provided token.

@generated @skip @team:DataDog/k9-cloud-vm
Scenario: List assets SBOMs returns "Not found: asset not found" response
Given operation "ListAssetsSBOMs" enabled
And new "ListAssetsSBOMs" request
Given new "ListAssetsSBOMs" request
When the request is sent
Then the response status is 404 Not found: asset not found

@team:DataDog/k9-cloud-vm
Scenario: List assets SBOMs returns "OK" response
Given operation "ListAssetsSBOMs" enabled
And new "ListAssetsSBOMs" request
Given new "ListAssetsSBOMs" request
And request contains "filter[package_name]" parameter with value "pandas"
And request contains "filter[asset_type]" parameter with value "Service"
When the request is sent
Expand Down
2 changes: 0 additions & 2 deletions lib/datadog_api_client/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,10 @@ def initialize
"v2.delete_threat_hunting_job": false,
"v2.get_finding": false,
"v2.get_rule_version_history": false,
"v2.get_sbom": false,
"v2.get_secrets_rules": false,
"v2.get_security_monitoring_histsignal": false,
"v2.get_security_monitoring_histsignals_by_job_id": false,
"v2.get_threat_hunting_job": false,
"v2.list_assets_sbo_ms": false,
"v2.list_findings": false,
"v2.list_multiple_rulesets": false,
"v2.list_scanned_assets_metadata": false,
Expand Down
12 changes: 0 additions & 12 deletions lib/datadog_api_client/v2/api/security_monitoring_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2327,12 +2327,6 @@ def get_sbom(asset_type, filter_asset_name, opts = {})
# @option opts [SBOMFormat] :ext_format The standard of the SBOM.
# @return [Array<(GetSBOMResponse, Integer, Hash)>] GetSBOMResponse data, response status code and response headers
def get_sbom_with_http_info(asset_type, filter_asset_name, opts = {})
unstable_enabled = @api_client.config.unstable_operations["v2.get_sbom".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_sbom")
else
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_sbom"))
end

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_sbom ...'
Expand Down Expand Up @@ -3510,12 +3504,6 @@ def list_assets_sbo_ms(opts = {})
# @option opts [SBOMComponentLicenseType] :filter_license_type The software license type of the component that is a dependency of an asset.
# @return [Array<(ListAssetsSBOMsResponse, Integer, Hash)>] ListAssetsSBOMsResponse data, response status code and response headers
def list_assets_sbo_ms_with_http_info(opts = {})
unstable_enabled = @api_client.config.unstable_operations["v2.list_assets_sbo_ms".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_assets_sbo_ms")
else
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_assets_sbo_ms"))
end

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.list_assets_sbo_ms ...'
Expand Down
Loading