get_policies
List masking policies in your ALTR organization. Filter by policy type to view tag, column, pushdown, impersonation, grant, row, or OLTP policies and get each policy's ID, tag, and rule count.
Instructions
List masking policies configured in your ALTR organization.
Returns each policy's tag, policy ID, and current rule count. Use the
policy_id from results when calling add_rules, get_rules, or
delete_policy.
Masking levels reference:
10000: No mask (show raw value)
10001: Full mask (replace with * matching data length)
10002: Email mask (show domain only)
10003: Show last four
10004: Constant mask (1 for numbers,
for strings, 1/1/2000 for dates)
10005: Null (replace with NULL)
10006: Full mask hash (replace with hashed value)
10007: Email hash (show domain, hash local part)
10008: Show last four hash (hash prefix, show last 4)
10009: Constant date (replace with 12/31/9999)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy_type | No | Filter by policy type. Values: TAG, COLUMN, PUSHDOWN, IMPERSONATION, GRANT, ROW, OLTP. If omitted, queries all types and merges results. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||