Description: Returns the global lifecycle definition, or optionally, the lifecycle definition for a specific project.
Since: 7.125.4
Usage: GET https://{{artifactory-host}}/access/api/v2/lifecycle?project_key={{project-key}}
Query Parameter (optional):
Parameter | Type | Description |
|---|---|---|
| string | Filters the list for a specific project. |
Response Body:
Property | Type | Description |
|---|---|---|
| string | Name of the release stage (for example, |
| array:array(section) | An ordered list of lifecycle categories and stages. |
| string | The category name ( |
| array(stage) | An ordered list of stages within a particular category. |
| string | The stage name (for example, |
| string | The scope at which the stage exists ( |
Sample Request:
GET 'https://{host}.jfrog.io/access/api/v2/lifecycle'
Authorization: ••••••
Sample Response:
{
"release_stage": "PROD",
"categories": [
{
"category": "code",
"stages": [
{ "name": "PR", "scope": "global" },
{ "name": "COMMIT", "scope": "global" }
]
},
{
"category": "promote",
"stages": [
{ "name": "qa-testing", "scope": "project" },
{ "name": "PROD", "scope": "global" }
]
}
]
}
Status Codes:
Code | Description |
|---|---|
202 | Success |
401 | Bad Credentials |
403 | Permission Denied |