Description: Returns a list of all Release Bundle v2 versions whose current location is in a specified environment.
Since: 7.107.1
Security: Requires Read permissions to the target Release Bundle path.
Usage:GET /lifecycle/api/v2/promotion/release-bundles-by-environment/{{environment}}
Path Parameter (mandatory):
Parameter | Type | Description |
|---|---|---|
| string | The name of the environment to query. |
Query Parameters (optional):
Parameter | Type | Description |
|---|---|---|
| string | The Release Bundles repository identifier that identifies where a Release Bundle version resides. If this parameter and the |
| string | The project key used to determine the Release Bundles repository. By convention, each project may contain only one Release Bundles system repository with the name ImportantYou must specify either the |
| integer | Sets the number of records to skip before returning the query response. Used for pagination purposes. The default value is |
| integer | Sets the maximum number of versions to return at one time. Used for pagination purposes. The default value is |
| string | Defines the criterion by which to order the list of Release Bundle versions:
NoteThe |
| boolean | Defines whether to list the promotions in ascending ( The default value is |
Response Parameters:
Parameter | Type | Description |
|---|---|---|
| string | The repository that contains the Release Bundle version. The default value is |
| string | The Release Bundle name. |
| string | The Release Bundle version. |
| string | Indicates whether the Release Bundle has been promoted successfully to the official release stage (PROD), making it available for consumption. Possible values are |
| string | The descriptive tag assigned to the Release Bundle version, if any. |
| The target environment to which the Release Bundle version was promoted. | |
| The timestamp of the promotion (ISO 8601 standard). | |
| The timestamp of the promotion in milliseconds. | |
| The name of the user who initiated the promotion operation. NoteNames longer than 64 characters will appear truncated. | |
| The project associated with the Release Bundle version, if any. |
Status Codes:
Code | Meaning | Description |
|---|---|---|
200 | Submitted (asynchronous) | The request was successful. |
401 | Bad Credentials | The provided authentication is invalid. |
403 | Permission Denied | The user does not have the necessary permissions to view promotions for this environment. |
404 | Not Found (repository/build) | The specified environment does not exist or has no promotions. |
Examples
The following examples demonstrate how to use to this endpoint to retrieve the Release Bundle versions that match your defined criteria.
Example 1: Get All Release Bundles in a Production Environment
This example contains a basic request to get Release Bundle versions that have been promoted to the PROD environment. The release_status is marked as released.
Request:
curl -u my-user -X GET "http://jfrog-platform-url/lifecycle/api/v2/promotion/release-bundles-by-environment/PROD"
Response:
[
{
"repository_key": "my-project-release-bundles-v2",
"release_bundle_name": "shopping-cart-app",
"release_bundle_version": "2.5.0",
"release_status": "released",
"tag": "stable-2.5.0",
"environment": "PROD",
"created": "2025-07-04T10:00:00Z",
"created_millis": 1751661600000,
"created_by": "release-manager",
"project_key": "my-project"
},
{
"repository_key": "my-project-release-bundles-v2",
"release_bundle_name": "auth-service",
"release_bundle_version": "1.2.1",
"release_status": "PROD",
"tag": "stable-1.2.1",
"environment": "production",
"created": "2025-07-03T15:30:00Z",
"created_millis": 1751585400000,
"created_by": "release-manager",
"project_key": "my-project"
}
]
Example 2: Get Release Bundles in Staging with Sorting and Limits
This request retrieves Release Bundle versions in the Staging environment. Sorting and limits have been defined for pagination purposes. The release_status is marked as pre_release.
Request:
curl -u my-user -X GET "http://jfrog-platform-url/lifecycle/api/v2/promotion/release-bundles-by-environment/staging?order_by=release_bundle_name&order_asc=true&limit=2"
Response:
[
{
"repository_key": "my-project-release-bundles-v2",
"release_bundle_name": "auth-service",
"release_bundle_version": "1.3.0-rc1",
"release_status": "pre_release",
"tag": "rc-candidate",
"environment": "staging",
"created": "2025-07-06T11:00:00Z",
"created_millis": 1751838000000,
"created_by": "developer-jane",
"project_key": "my-project"
},
{
"repository_key": "my-project-release-bundles-v2",
"release_bundle_name": "payment-gateway",
"release_bundle_version": "4.0.0-beta",
"release_status": "pre_release",
"tag": "beta-build",
"environment": "staging",
"created": "2025-07-05T18:00:00Z",
"created_millis": 1751776800000,
"created_by": "developer-john",
"project_key": "my-project"
}
]