update_rule
Update properties of an existing masking rule (masking level, role, tag, thresholds) without deleting and recreating it.
Instructions
Update an existing masking rule's properties without deleting and recreating it.
Only the fields you provide will be updated; omitted
fields remain unchanged. Use get_rules first to find
the rule_id and see current values.
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_id | Yes | Raw policy ID from `get_policies`. Do not URL-encode. | |
| rule_id | Yes | Raw rule ID from `get_rules`. Do not URL-encode. | |
| masking_policy | No | New masking level (10000-10009). | |
| role | No | New role/user group name. | |
| tag_value | No | New tag value for the rule. | |
| access_rate_thresholds | No | List of access rate threshold objects, each with 'access_rate_unit' (str), 'access_rate_limit' (int), and 'action' (str). | |
| time_window_thresholds | No | List of time window threshold objects, each with 'day' (list of str), 'start_time' (dict with hour/minute), 'end_time' (dict with hour/minute), 'timezone' (str), and 'action' (str). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||