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
10 changes: 9 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10502,6 +10502,7 @@ components:
- Host
- HostImage
- Image
- ServerlessFunction
example: Repository
type: string
x-enum-varnames:
Expand All @@ -10510,6 +10511,7 @@ components:
- HOST
- HOSTIMAGE
- IMAGE
- SERVERLESSFUNCTION
AssetVersion:
description: Asset version.
properties:
Expand Down Expand Up @@ -175616,6 +175618,11 @@ paths:
description: |-
Get a list of assets SBOMs for an organization.

The `filter[asset_type]` parameter is required for initial requests (when no `page[token]` is provided).
Subsequent pages encode the asset type in the pagination token, so `filter[asset_type]` is not required
for paginated requests. Mixing infrastructure asset types (`Host`, `HostImage`, `Image`, `ServerlessFunction`)
with code asset types (`Repository`, `Service`) in the same request is not supported and returns a 400 error.

### Pagination

Please review the [Pagination section](#pagination) for the "List Vulnerabilities" endpoint.
Expand Down Expand Up @@ -175645,7 +175652,8 @@ paths:
format: int64
minimum: 1
type: integer
- description: The type of the assets for the SBOM request.
- description: >-
The type of the assets for the SBOM request. Required for initial requests (when no `page[token]` is provided). Infrastructure types (`Host`, `HostImage`, `Image`, `ServerlessFunction`) and code types (`Repository`, `Service`) cannot be mixed in the same request.
example: Repository
in: query
name: filter[asset_type]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16679,7 +16679,11 @@ public ListAssetsSBOMsOptionalParameters pageNumber(Long pageNumber) {
/**
* Set filterAssetType.
*
* @param filterAssetType The type of the assets for the SBOM request. (optional)
* @param filterAssetType The type of the assets for the SBOM request. Required for initial
* requests (when no <code>page[token]</code> is provided). Infrastructure types (<code>Host
* </code>, <code>HostImage</code>, <code>Image</code>, <code>ServerlessFunction</code>) and
* code types (<code>Repository</code>, <code>Service</code>) cannot be mixed in the same
* request. (optional)
* @return ListAssetsSBOMsOptionalParameters
*/
public ListAssetsSBOMsOptionalParameters filterAssetType(AssetType filterAssetType) {
Expand Down Expand Up @@ -16809,6 +16813,13 @@ public CompletableFuture<ListAssetsSBOMsResponse> listAssetsSBOMsAsync(
/**
* Get a list of assets SBOMs for an organization.
*
* <p>The <code>filter[asset_type]</code> parameter is required for initial requests (when no
* <code>page[token]</code> is provided). Subsequent pages encode the asset type in the pagination
* token, so <code>filter[asset_type]</code> is not required for paginated requests. Mixing
* infrastructure asset types (<code>Host</code>, <code>HostImage</code>, <code>Image</code>,
* <code>ServerlessFunction</code>) with code asset types (<code>Repository</code>, <code>Service
* </code>) in the same request is not supported and returns a 400 error.
*
* <h3>Pagination</h3>
*
* <p>Please review the <a href="#pagination">Pagination section</a> for the "List
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@
public class AssetType extends ModelEnum<String> {

private static final Set<String> allowedValues =
new HashSet<String>(Arrays.asList("Repository", "Service", "Host", "HostImage", "Image"));
new HashSet<String>(
Arrays.asList(
"Repository", "Service", "Host", "HostImage", "Image", "ServerlessFunction"));

public static final AssetType REPOSITORY = new AssetType("Repository");
public static final AssetType SERVICE = new AssetType("Service");
public static final AssetType HOST = new AssetType("Host");
public static final AssetType HOSTIMAGE = new AssetType("HostImage");
public static final AssetType IMAGE = new AssetType("Image");
public static final AssetType SERVERLESSFUNCTION = new AssetType("ServerlessFunction");

AssetType(String value) {
super(value, allowedValues);
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-07-06T19:25:16.964Z
2026-07-07T14:35:06.517Z
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"path": "/api/v2/security/sboms",
"queryStringParameters": {
"page[token]": [
"unknown"
"SERVICE:unknown"
],
"page[number]": [
"1"
Expand All @@ -16,7 +16,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad request: asset_type\",\"detail\":\"asset_type filter is required\"}]}",
"body": "{\"errors\":[{\"status\":\"400\",\"title\":\"Unexpected internal error\"}]}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
Expand All @@ -31,6 +31,6 @@
"timeToLive": {
"unlimited": true
},
"id": "5eb3b8f5-3dd3-195c-e37e-46f12fa2d7a1"
"id": "ba0ed496-453c-e8e1-0a23-16ea3ab92b2f"
}
]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-01-20T08:27:19.760Z
2026-07-07T14:35:10.638Z
Original file line number Diff line number Diff line change
Expand Up @@ -2369,7 +2369,7 @@ Feature: Security Monitoring
@team:DataDog/k9-cloud-vm
Scenario: List assets SBOMs returns "Bad request: Invalid pagination token." response
Given new "ListAssetsSBOMs" request
And request contains "page[token]" parameter with value "unknown"
And request contains "page[token]" parameter with value "SERVICE:unknown"
And request contains "page[number]" parameter with value 1
When the request is sent
Then the response status is 400 Bad request: Invalid pagination token.
Expand Down
Loading