Description: Returns the details of the specified application version promotion.
Security: Requires Read permissions to the target application version path
Usage: GET /apptrust/api/v1/applications/{application_key}/versions/{version}/promotions/{created_millis}
Path Parameters:
Parameter | Type | Description |
|---|---|---|
| string | The unique application key. |
| string | The application version. |
| integer | The timestamp when the application version promotion was initiated (in milliseconds). |
Response Body:
Property | Type | Description |
|---|---|---|
| string | The stage to which the application version was promoted. |
| string | The user who created the application version. |
| string | The timestamp when the application version promotion was initiated (ISO 8601 standard). |
| integer | The timestamp when the application version promotion was initiated (in milliseconds). |
| array | The artifacts included in the promotion. |
| string | The path of an application version item relative to the path of the artifact in Artifactory, including the repository key. |
| string | The SHA-256 checksum of the source artifact. |
| string | The package type. |
| string | The package name. |
| string | The package version. |
Sample Request:
GET 'https://{host}.jfrog.io/apptrust/api/v1/applications/catalina-app/versions/1.0.0/promotions/1684477304916
Content-Type: application/json
Authorization: ••••••
Sample Response:
{
"target_stage": "QA",
"created_by": "admin",
"created": "2023-05-19T06:21:44.916Z",
"created_millis": 1684477304916,
"artifacts": [
{
"path": "commons-qa-maven-local/org/apache/tomcat/commons/1.0.0/commons-1.0.0.jar",
"checksum": "0d2053f76605e0734f5251a78c5dade5ee81b0f3730b3f603aedb90bc58033fb",
"package_type": "maven",
"package_name": "org.apache.tomcat:commons",
"package_version": "1.0.0"
},
{
"path": "commons-qa-generic-local/commons/release-notes-1.0.0.txt",
"checksum": "f87e4c72e60300b451739d545afc0251a6e2f4bd1beaa1902ba739455897ecb8",
"package_type": "generic"
}
]
}
Status Codes:
Code | Description |
|---|---|
200 | Fetched |
401 | Bad Credentials |
403 | Permission Denied |
404 | Not Found (application, application version, or promotion) |