Description: Returns the requested data for the Release Bundle v2 version defined by the One Model GraphQL query.
Important
When operating in a Self-Hosted environment, you must enable the Evidence service in the system.yaml file as a prerequisite to using this endpoint. Add the following:
evidence: enabled: true
Since: 7.111.4
Security: Requires a valid token; requires Read permissions for the specified Release Bundle
Usage: POST /onemodel/api/v1/graphql
Tip
To jump directly to common use cases & examples, click here.
Query a Release Bundle Version
Use the getVersion query to fetch a specific Release Bundle version. This is the primary entry point for all Release Bundle version data.
getVersion
Fetches a single Release Bundle version identified by its name, version, and location (repository or project).
query {
releaseBundleVersion {
getVersion(name: "my-release-bundle", version: "1.0.0") {
# Fields to retrieve
createdBy
createdAt
}
}
}
Field | Required/Optional | Type | Description |
|---|---|---|---|
| required | string | The name of the Release Bundle. |
| required | string | The Release Bundle version. |
| optional | string | The repository key where the Release Bundle is stored. The default is |
| optional | string | The project key associated with the Release Bundle. If used without repositoryKey, it resolves to the project's default Release Bundle repository ( |
Repository Selection Logic
This API uses a specific order of preference to determine which repository to query:
repositoryKey is provided: The query targets the specified repository directly. The
projectKeyis ignored, if provided.projectKey is provided alone: The query targets the default Release Bundle repository within the specified project.
Neither is provided: The query targets the default global repository,
release-bundles-v2.
ReleaseBundleVersion Type
This type represents a specific Release Bundle version and contains all its associated data.
Field | Type | Description |
|---|---|---|
| string | The user who created the Release Bundle version. |
| date | The timestamp of when the Release Bundle version was created. |
| Use this connection to retrieve a paginated list of artifacts included in the Release Bundle version. You can filter the results. | |
| EvidenceConnection | Use this connection to retrieve a paginated list of evidence associated with the Release Bundle version. You can filter the results based on certain criteria:
For more information about evidence, see Search Evidence. |
| A list of source builds used to create the Release Bundle version. |
Note
Fields such as ReleaseBundleVersionArtifact and EvidenceConnection use a cursor-based pagination model, which is a standard GraphQL pattern for handling large data sets efficiently.
For more information, see One Model GraphQL Common Patterns and Conventions.
Detailed Object Types
Status Codes
Code | Message | Description |
|---|---|---|
200 | Ok | The request was successful. |
401 | Bad Credentials | The request failed because the provided authentication token is invalid or expired. |
403 | Permission Denied | The request failed because the authenticated user does not have the required Read permissions for the subject repository. |