Description: Returns the records of all promotions for the specified Release Bundle v2 (regardless of version). All promotion records are provided regardless of status, including failed attempts.
Since: 7.63.2
Security: Requires Read permissions to the target Release Bundle path.
Usage:GET /lifecycle/api/v2/promotion/records/{name}
Query Parameters (optional):
Field | Type | Description |
---|---|---|
| string | Returns any error messages generated when creating the promotion. |
| integer | Sets the number of records to skip before returning the query response. Used for pagination purposes. |
| integer | Sets the maximum number of versions to return at one time. Used for pagination purposes. |
| string | Defines a filter for the list of promotions. |
| string | Defines the criterion by which to order the list of promotions: created (standard timestamp or milliseconds), |
| boolean | Defines whether to list the promotions in ascending (true) or descending (false) order. The default value is |
Note
See Common Optional Query Parameters for additional query parameters that are available for all Release Lifecycle Management APIs.
Sample Response:
{ "promotions": [ { "status": "FAILED", "repository_key": "release-bundles-v2", "release_bundle_name": "Commons-Bundle", "release_bundle_version": "1.0.0", "environment": "QA", "service_id": "jfrt@01h0nvs1pwjtzs15x7kbtv1sve", "created_by": "admin", "created": "2023-05-19T06:47:56.518Z", "created_millis": 1684478876518, "xray_retrieval_status": "NOT_APPLICABLE", "messages": [ { "text": "Target artifact already exists: commons-qa-generic-local/commons/release-notes-1.0.0.txt" } ] }, { "status": "COMPLETED", "repository_key": "release-bundles-v2", "release_bundle_name": "Commons-Bundle", "release_bundle_version": "1.0.0", "environment": "QA", "service_id": "jfrt@01h0nvs1pwjtzs15x7kbtv1sve", "created_by": "admin", "created": "2023-05-19T06:21:44.916Z", "created_millis": 1684477304916, "xray_retrieval_status": "NOT_APPLICABLE" } ], "total": 2, "limit": 1000, "offset": 0 }
The response includes the following information:
Property | Description |
---|---|
| Status of the promotion: STARTED, FAILED, COMPLETED, DELETING |
| Unique identifier for the Release Bundles repository. |
| Name of the Release Bundle. |
| Release Bundle version. |
| Name of the target environment for the promotion. |
| The unique identifier of the Artifactory instance where the Release Bundle was promoted. |
| Name of the user who initiated the promotion. |
| Timestamp when the promotion was created (ISO 8601 standard). |
| Timestamp when the promotion was created in milliseconds. |
| The current status of the processing of this promotion by Xray. |
| Error messages related to the processing of the operation (if any). |
Status Codes:
Code | Description |
---|---|
200 | Fetched |
401 | Bad Credentials |
403 | Permission Denied |