Bulk Get Releases From All Catalogs

Bulk Get Releases From All Catalogs

Return a list of releases that match the list of digests searching in all catalogs for an organization. The id of the organization is fetched from CSP token. The digests are given in the body of the request.

Request
URI
POST
https://{api_host}/v1/releases
COPY
Request Body

List of digests that will be searched

SearchCriteria of type(s) application/json
Required
{
    "repo_digests": [
        "sha256:37a957b541234a7424eb434d3d10642dd29b6d0577757c27c09b0b9e967eb23f"
    ],
    "content_digests": [
        "sha256:81a957b549848a7424eb434d3d10642dd29b6d0577757c27c09b0b9e967eb64b"
    ],
    "expand_relationships": false
}
array of string
repo_digests
Optional
Constraints: maxItems: 100

repo_digests

array of string
content_digests
Optional
Constraints: maxItems: 100

content_digests

boolean
expand_relationships
Optional

Include detailed release payload for the dependencies and dependants of the release

Authentication
This operation uses the following authentication methods.
Responses
200

List of releases in all catalogs of an organization

Returns Array of Release of type(s) application/json
[
    "Release Object"
]

400

An error related to the request

Returns ConstraintsViolationsError of type(s) application/problem+json
This response body class contains all of the following: InlineConstraintsViolationsError0
"ConstraintsViolationsError Object"
array of object
violations
Required

It represents a constraints violation error


403

The requesting user is not authorized to get the releases

Returns Error403 of type(s) application/problem+json
This response body class contains all of the following: InlineError4030
"Error403 Object"

404

No catalogs found for the organization

Returns Error404 of type(s) application/problem+json
This response body class contains all of the following: InlineError4040
"Error404 Object"

500

An internal server error object

Returns Error500 of type(s) application/problem+json
This response body class contains all of the following: InlineError5000
"Error500 Object"

503

The server is temporarily unavailable

Returns Error503 of type(s) application/problem+json
This response body class contains all of the following: InlineError5030
"Error503 Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/v1/releases