Data Policy Templates provide reusable sets of rule items (e.g., Null Checks, Pattern Checks, Enumeration Checks) that can be applied to new policies for faster policy creation.
This is the API equivalent of Policy Templates in the UI.
Available Endpoints
| Action | Endpoint |
|---|---|
| Create Template | POST /catalog-server/api/policy-templates |
| List Templates | GET /catalog-server/api/policy-templates |
| Get Template | GET /catalog-server/api/policy-templates/:id |
| Update Template | PUT /catalog-server/api/policy-templates/:id |
| Delete Template | DELETE /catalog-server/api/policy-templates/:id |
Path Parameter (GET Template)
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Template ID |
Sample Requests
Create Policy Template
curl -X POST "https://{{HOST}}/catalog-server/api/policy-templates" \ -H "Content-Type: application/json" \ -d '{ "name": "basic_null_checks", "items": [...] }'List Policy Template
curl -X GET "https://{{HOST}}/catalog-server/api/policy-templates"Get Templates
curl -X GET "https://{{HOST}}/catalog-server/api/policy-templates/42"Update Policy Template
curl -X PUT "https://{{HOST}}/catalog-server/api/policy-templates/42" \ -H "Content-Type: application/json" \ -d '{ "description": "Updated explanation" }'Delete Policy Template
curl -X DELETE "https://{{HOST}}/catalog-server/api/policy-templates/42"Was this page helpful?