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
1 change: 0 additions & 1 deletion examples/v2/security-monitoring/GetSBOM.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.getSBOM", true);
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

try {
Expand Down
1 change: 0 additions & 1 deletion examples/v2/security-monitoring/ListAssetsSBOMs.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.listAssetsSBOMs", true);
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

try {
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -782,12 +782,10 @@ public class ApiClient {
put("v2.deleteThreatHuntingJob", false);
put("v2.getFinding", false);
put("v2.getRuleVersionHistory", false);
put("v2.getSBOM", false);
put("v2.getSecretsRules", false);
put("v2.getSecurityMonitoringHistsignal", false);
put("v2.getSecurityMonitoringHistsignalsByJobId", false);
put("v2.getThreatHuntingJob", false);
put("v2.listAssetsSBOMs", false);
put("v2.listFindings", false);
put("v2.listMultipleRulesets", false);
put("v2.listScannedAssetsMetadata", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5327,13 +5327,6 @@ public CompletableFuture<GetSBOMResponse> getSBOMAsync(
public ApiResponse<GetSBOMResponse> getSBOMWithHttpInfo(
AssetType assetType, String filterAssetName, GetSBOMOptionalParameters parameters)
throws ApiException {
// Check if unstable operation is enabled
String operationId = "getSBOM";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;

// verify the required parameter 'assetType' is set
Expand Down Expand Up @@ -5395,16 +5388,6 @@ public ApiResponse<GetSBOMResponse> getSBOMWithHttpInfo(
*/
public CompletableFuture<ApiResponse<GetSBOMResponse>> getSBOMWithHttpInfoAsync(
AssetType assetType, String filterAssetName, GetSBOMOptionalParameters parameters) {
// Check if unstable operation is enabled
String operationId = "getSBOM";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<GetSBOMResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;

// verify the required parameter 'assetType' is set
Expand Down Expand Up @@ -8138,13 +8121,6 @@ public CompletableFuture<ListAssetsSBOMsResponse> listAssetsSBOMsAsync(
*/
public ApiResponse<ListAssetsSBOMsResponse> listAssetsSBOMsWithHttpInfo(
ListAssetsSBOMsOptionalParameters parameters) throws ApiException {
// Check if unstable operation is enabled
String operationId = "listAssetsSBOMs";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;
String pageToken = parameters.pageToken;
Long pageNumber = parameters.pageNumber;
Expand Down Expand Up @@ -8205,16 +8181,6 @@ public ApiResponse<ListAssetsSBOMsResponse> listAssetsSBOMsWithHttpInfo(
*/
public CompletableFuture<ApiResponse<ListAssetsSBOMsResponse>> listAssetsSBOMsWithHttpInfoAsync(
ListAssetsSBOMsOptionalParameters parameters) {
// Check if unstable operation is enabled
String operationId = "listAssetsSBOMs";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<ListAssetsSBOMsResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;
String pageToken = parameters.pageToken;
Long pageNumber = parameters.pageNumber;
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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-07-10T10:13:27.247Z
2026-01-20T08:26:52.182Z
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-07-10T10:11:37.540Z
2026-01-20T08:27:19.760Z
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
Loading