Get Policy

JFrog REST APIs

Content Type
REST API

Description: Retrieve a specific lifecycle policy by its ID.

Usage: GET https://{{artifactory-host}}/unifiedpolicy/api/v1/policies/{policyId}

Path Parameters:

Name

Type

Required

Description

policyId

string

Yes

Policy identifier.

Sample Response:

{
  "id": "policy-1001",
  "name": "Production Security Policy",
  "description": "Block promotion on Critical CVEs",
  "enabled": true,
  "mode": "block",
  "action": { "type": "certify_to_gate", "stage": { "key": "production", "gate": "entry" } },
  "scope": { "type": "project", "project_keys": ["my-project"] },
  "rule_ids": ["rule-12345","rule-67890"],
  "created_at": "2025-10-09T10:30:00Z",
  "created_by": "admin",
  "updated_at": "2025-10-09T10:30:00Z",
  "updated_by": "admin"
}

Status Codes

Code

Status

200

Success

401

Unauthorized

403

Forbidden

404

Policy not found

500

Internal Server Error