create_masking_policy
Create a data-masking policy to restrict sensitive data visibility by applying mask types like MASK, MASK_HASH, or CUSTOM to specified users, groups, databases, tables, or columns.
Instructions
Create a data-masking policy (policyType=1). WRITE OPERATION
data_mask_type examples: MASK, MASK_SHOW_LAST_4, MASK_HASH, MASK_NULL, CUSTOM.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | ||
| policy_name | Yes | ||
| data_mask_type | Yes | ||
| users | No | ||
| groups | No | ||
| database | No | ||
| table | No | ||
| column | No | ||
| resources_json | No | ||
| value_expr | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |