Import & Export Policies
Promote policies between tenants and automate CI/CD of Data Reliability.
Export
Endpoints
- Run pre-check with the same filters you plan to export with.
- Export returns a ZIP file containing selected policy definitions.
Example (pre-check)
curl -X GET "https://{HOST}/catalog-server/api/rules/export/policy-definitions/pre-check?onlyActive=true"
Example (export)
curl -L -o policies.zip \
"https://{HOST}/catalog-server/api/rules/export/policy-definitions?ids=1001,1002&onlyActive=true"
Import
Endpoints (same base path, combined)
1) Upload the exported ZIP to receive a uuid
.
curl -X POST "https://{HOST}/catalog-server/api/rules/import/policy-definitions/upload-config" \
-H "Authorization: Bearer $TOKEN" -H "accessKey: $ACCESS_KEY" -H "secretKey: $SECRET_KEY" \
-F "policy-config-file=@policies.zip"
2) Apply with options (override behavior, assembly maps) and the returned uuid
.
curl -X POST "https://{HOST}/catalog-server/api/rules/import/policy-definitions/apply-config" \
-H "Authorization: Bearer $TOKEN" -H "accessKey: $ACCESS_KEY" -H "secretKey: $SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"uuid": "the-upload-uuid",
"policyOverride": true,
"sqlViewOverride": false,
"visualViewOverride": false,
"assemblyMap": {"dev-snowflake":"qa-snowflake"}
}'
Was this page helpful?