Description: Retrieve a list of lifecycle policies. Use filters to narrow by mode, scope, stage/gate, and more. Supports pagination and sorting.
Usage: GET https://{{artifactory-host}}/unifiedpolicy/api/v1/policies
Query Parameters:
Parameter | Type | Required | Description |
|---|---|---|---|
| boolean | No | Filter by enabled status. |
| string | No |
|
| string | No | Action type (e.g., |
| string | No |
|
| array[string] | No | Filter by stage keys. |
| array[string] | No | Gate filter: |
| string | No | Filter by project key. |
| array[string] | No | Filter by application keys. |
| object | No | Exact label matches. |
| string | No | Use |
| integer | No | Page offset (default: |
| integer | No | Items per page (1–250, default: 100). |
| string | No | Sort field (e.g., |
| string | No |
|
Sample Response:
{
"items": [
{
"id": "policy-1001",
"name": "Production Security Policy",
"enabled": true,
"mode": "block",
"action": { "type": "certify_to_gate", "stage": { "key": "production", "gate": "entry" } },
"scope": { "type": "project", "project_keys": ["my-project"] },
"rules": [{ "id": "rule-12345" }, { "id": "rule-67890" }]
}
],
"offset": 0,
"limit": 20,
"page_size": 1,
"total_count": 1
}
Status Codes
Code | Status |
|---|---|
200 | Success |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |