Description: Returns the details of all promotions of the specified application version.
Since: AppTrust 1.16.4
Usage: GET https://{{artifactory-host}}/apptrust/api/v1/applications/{{application_key}}/versions/{{version}}/promotions
Query Parameters (optional):
Parameter | Type | Description |
|---|---|---|
| string | When set to |
| 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 based on:
|
| string | Defines the criterion by which to order the list of promotions:
The default is |
| boolean | Defines whether to list the application in ascending ( The default is |
Response Body:
Property | Type | Description |
|---|---|---|
| string | The unique application key. |
| string | The application version. |
| string | The unique project key. |
| string | The current status of the application version. |
| string | The stage from which the application version was promoted. |
| string | The stage to which the application version was promoted. |
| string | The user ID who promoted this application version. |
| date | The date and time when this application version was promoted (ISO 8601 format). |
| integer | The date and time when this application version was promoted in milliseconds. |
Sample Request:
GET 'https://{host}.jfrog.io/apptrust/api/v1/applications/catalina-app/versions/1.0.0/promotions?limit=2'
Content-Type: application/json
Authorization: ••••••
Sample Response:
{
"promotions": [
{
"status": "FAILED",
"project_key": "catalina",
"application_key": "my-app",
"application_version": "1.0.0",
"source_stage": "QA",
"target_stage": "PROD",
"promoted_by": "admin",
"promoted": "2023-05-19T06:47:56.518Z",
"created_millis": 1684478876518,
"evaluations": {
"exit_gate": {
"stage": "QA",
"eval_id": "eval-exit-b4c3d2a1",
"decision": "pass"
},
"entry_gate": {
"stage": "PROD",
"eval_id": "eval-entry-h8g7f6e5",
"decision": "fail",
"explanation": "Promotion blocked due to critical security vulnerabilities."
}
}
},
{
"status": "COMPLETED",
"project_key": "catalina",
"application_key": "my-app",
"application_version": "1.0.0",
"source_stage": "DEV",
"target_stage": "QA",
"created_by": "admin",
"created": "2023-05-19T06:21:44.916Z",
"created_millis": 1684477304916,
"evaluations": {
"exit_gate": {
"stage": "DEV",
"eval_id": "eval-exit-a1b2c3d4",
"decision": "pass"
},
"entry_gate": {
"stage": "QA",
"eval_id": "eval-entry-e5f6g7h8",
"decision": "pass"
}
}
],
"total": 2,
"limit": 1000,
"offset": 0
}
Status Codes:
Code | Description |
|---|---|
200 | Success |
401 | Bad Credentials |
403 | Permission Denied |