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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-03 18:38:23.758028",
"spec_repo_commit": "325cdedf"
"regenerated": "2025-02-03 19:47:09.635963",
"spec_repo_commit": "b52549d9"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-03 18:38:23.773753",
"spec_repo_commit": "325cdedf"
"regenerated": "2025-02-03 19:47:09.652236",
"spec_repo_commit": "b52549d9"
}
}
}
9 changes: 0 additions & 9 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43976,9 +43976,6 @@ paths:
summary: List vulnerable assets
tags:
- Security Monitoring
x-unstable: '**Note**: This endpoint is a private preview.

If you are interested in accessing this API, please [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
/api/v2/security/cloud_workload/policy/download:
get:
description: 'The download endpoint generates a Cloud Workload Security policy
Expand Down Expand Up @@ -44071,9 +44068,6 @@ paths:
summary: Get SBOM
tags:
- Security Monitoring
x-unstable: '**Note**: This endpoint is a private preview.

If you are interested in accessing this API, please [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
/api/v2/security/signals/notification_rules:
get:
description: Returns the list of notification rules for security signals.
Expand Down Expand Up @@ -44632,9 +44626,6 @@ paths:
summary: List vulnerabilities
tags:
- Security Monitoring
x-unstable: '**Note**: This endpoint is a private preview.

If you are interested in accessing this API, please [fill out this form](https://forms.gle/kMYC1sDr6WDUBDsx9).'
/api/v2/security/vulnerabilities/notification_rules:
get:
description: Returns the list of notification rules for security vulnerabilities.
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/ListVulnerabilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.listVulnerabilities", true);
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

try {
Expand Down
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.listVulnerableAssets", true);
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

try {
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,8 @@ public class ApiClient {
put("v2.deleteHistoricalJob", false);
put("v2.getFinding", false);
put("v2.getHistoricalJob", false);
put("v2.getSBOM", false);
put("v2.listFindings", false);
put("v2.listHistoricalJobs", false);
put("v2.listVulnerabilities", false);
put("v2.listVulnerableAssets", false);
put("v2.muteFindings", false);
put("v2.runHistoricalJob", false);
put("v2.createScorecardOutcomesBatch", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3222,13 +3222,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 @@ -3288,16 +3281,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 @@ -6584,13 +6567,6 @@ public CompletableFuture<ListVulnerabilitiesResponse> listVulnerabilitiesAsync(
*/
public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
ListVulnerabilitiesOptionalParameters parameters) throws ApiException {
// Check if unstable operation is enabled
String operationId = "listVulnerabilities";
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 @@ -6761,17 +6737,6 @@ public ApiResponse<ListVulnerabilitiesResponse> listVulnerabilitiesWithHttpInfo(
*/
public CompletableFuture<ApiResponse<ListVulnerabilitiesResponse>>
listVulnerabilitiesWithHttpInfoAsync(ListVulnerabilitiesOptionalParameters parameters) {
// Check if unstable operation is enabled
String operationId = "listVulnerabilities";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<ListVulnerabilitiesResponse>> 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 Expand Up @@ -7242,13 +7207,6 @@ public CompletableFuture<ListVulnerableAssetsResponse> listVulnerableAssetsAsync
*/
public ApiResponse<ListVulnerableAssetsResponse> listVulnerableAssetsWithHttpInfo(
ListVulnerableAssetsOptionalParameters parameters) throws ApiException {
// Check if unstable operation is enabled
String operationId = "listVulnerableAssets";
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 @@ -7334,17 +7292,6 @@ public ApiResponse<ListVulnerableAssetsResponse> listVulnerableAssetsWithHttpInf
*/
public CompletableFuture<ApiResponse<ListVulnerableAssetsResponse>>
listVulnerableAssetsWithHttpInfoAsync(ListVulnerableAssetsOptionalParameters parameters) {
// Check if unstable operation is enabled
String operationId = "listVulnerableAssets";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<ListVulnerableAssetsResponse>> 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-01-15T14:19:46.527Z
2025-01-31T12:04:00.490Z
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-01-17T13:12:50.575Z
2025-01-31T12:04:14.913Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-12-19T16:15:23.508Z
2025-01-31T12:04:28.397Z
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}",
"body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"rpc error: code = Internal desc = no cached result set found for queryID: unknown\"}]}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-12-19T16:15:24.088Z
2025-01-31T12:04:39.730Z
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-12-19T16:15:24.530Z
2025-01-31T12:04:52.159Z
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}",
"body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"rpc error: code = Internal desc = no cached result set found for queryID: unknown\"}]}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-12-19T16:15:24.699Z
2025-01-31T12:05:04.773Z
Original file line number Diff line number Diff line change
Expand Up @@ -447,26 +447,23 @@ Feature: Security Monitoring

@generated @skip @team:DataDog/asm-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/asm-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

@team:DataDog/asm-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 @@ -783,24 +780,21 @@ Feature: Security Monitoring

@generated @skip @team:DataDog/asm-vm
Scenario: List vulnerabilities returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
Given operation "ListVulnerabilities" enabled
And new "ListVulnerabilities" request
Given new "ListVulnerabilities" 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/asm-vm
Scenario: List vulnerabilities returns "Not found: There is no request associated with the provided token." response
Given operation "ListVulnerabilities" enabled
And new "ListVulnerabilities" request
Given new "ListVulnerabilities" 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.

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

@generated @skip @team:DataDog/asm-vm
Scenario: List vulnerable assets returns "Bad request: The server cannot process the request due to invalid syntax in the request." response
Given operation "ListVulnerableAssets" enabled
And new "ListVulnerableAssets" request
Given new "ListVulnerableAssets" 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/asm-vm
Scenario: List vulnerable assets returns "Not found: There is no request associated with the provided token." response
Given operation "ListVulnerableAssets" enabled
And new "ListVulnerableAssets" request
Given new "ListVulnerableAssets" 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.

@team:DataDog/asm-vm
Scenario: List vulnerable assets returns "OK" response
Given operation "ListVulnerableAssets" enabled
And new "ListVulnerableAssets" request
Given new "ListVulnerableAssets" request
And request contains "filter[type]" parameter with value "Host"
And request contains "filter[repository_url]" parameter with value "github.com/datadog/dd-go"
And request contains "filter[risks.in_production]" parameter with value true
Expand Down