---
updatedAt: 2026-09-01T08:42:46.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/governance/llms.txt
---

# Get Release Bundle v2 Versions in a Specific Environment

Returns a list of Release Bundle v2 versions that have been promoted to a specific environment.

**Security:** Requires Read permissions to the target Release Bundle paths.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Release Lifecycle Management API",
    "description": "API for managing release bundles in JFrog Artifactory - Based on official JFrog REST API documentation",
    "version": "3.x-SNAPSHOT",
    "contact": {
      "name": "JFrog Support",
      "url": "https://jfrog.com/help",
      "email": "support@jfrog.com"
    }
  },
  "servers": [
    {
      "url": "https://{jfrog_url}/lifecycle/api/v2",
      "description": "JFrog Platform",
      "variables": {
        "jfrog_url": {
          "default": "myserver.jfrog.io",
          "description": "Your JFrog Platform hostname (e.g., mycompany.jfrog.io)"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Release Bundle V2 Promotion",
      "description": "Release bundle promotion operations"
    }
  ],
  "paths": {
    "/promotion/release-bundles-by-environment/{environment}": {
      "get": {
        "tags": [
          "Release Bundle V2 Promotion"
        ],
        "summary": "Get Release Bundle v2 Versions in a Specific Environment",
        "description": "Returns a list of Release Bundle v2 versions that have been promoted to a specific environment.\n\n**Security:** Requires Read permissions to the target Release Bundle paths.",
        "x-since": "7.63.2",
        "operationId": "getBundlesByEnvironment",
        "parameters": [
          {
            "name": "environment",
            "in": "path",
            "description": "The name of the environment",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "project",
            "in": "query",
            "description": "The project key used to determine the Release Bundles repository",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order_by",
            "in": "query",
            "description": "Field to order by",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order_asc",
            "in": "query",
            "description": "Order ascending",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK - Successfully retrieved bundles in environment",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BundleByEnvironmentSummary"
                  }
                },
                "examples": {
                  "bundles_in_env": {
                    "summary": "Bundles promoted to staging",
                    "value": [
                      {
                        "repository_key": "release-bundles-v2",
                        "release_bundle_name": "my-bundle",
                        "release_bundle_version": "1.0.0",
                        "environment": "STAGING",
                        "created": "2025-04-29T14:17:21.587Z",
                        "created_by": "admin"
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Bad Credentials - The provided authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Permission Denied - The user does not have the necessary permissions to view promotions for this environment.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found - The specified environment does not exist or has no promotions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "description": "Standard error body for non-2xx responses (400, 401, 403, 404, 500). Matches Artifactory-style error format.",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorItem"
            },
            "description": "List of error entries"
          }
        }
      },
      "ErrorItem": {
        "type": "object",
        "description": "A single error entry in an error response.",
        "properties": {
          "status": {
            "type": "integer",
            "description": "HTTP status code (e.g. 400, 401, 403, 404, 500)"
          },
          "message": {
            "type": "string",
            "description": "Human-readable error message"
          }
        }
      },
      "BundleByEnvironmentSummary": {
        "type": "object",
        "description": "Summary of a bundle in a specific environment",
        "properties": {
          "repository_key": {
            "type": "string",
            "description": "Repository key where the bundle is stored"
          },
          "release_bundle_name": {
            "type": "string",
            "description": "Name of the release bundle"
          },
          "release_bundle_version": {
            "type": "string",
            "description": "Version of the release bundle"
          },
          "release_status": {
            "type": "string",
            "description": "Release status"
          },
          "tag": {
            "type": "string",
            "description": "Tag assigned to the bundle"
          },
          "environment": {
            "type": "string",
            "description": "Environment name"
          },
          "created": {
            "type": "string",
            "description": "Creation timestamp"
          },
          "created_millis": {
            "type": "integer",
            "format": "int64",
            "description": "Creation timestamp in milliseconds"
          },
          "created_by": {
            "type": "string",
            "description": "User who created the bundle"
          },
          "project_key": {
            "type": "string",
            "description": "Project key associated with the bundle"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "JWT token authentication"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```