set_security_policy_state
Enable or disable a row-level security policy using ALTER SECURITY POLICY, allowing reversible toggling of policy state.
Instructions
Enable or disable a row-level security policy.
Executes ALTER SECURITY POLICY ... WITH (STATE = ON|OFF).
Not destructive -- enabling or disabling a policy is reversible.
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
policy_name: Qualified policy name ("schema.name" or "name").
enabled: True to enable the policy, False to disable it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| enabled | Yes | ||
| workspace | Yes | ||
| policy_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||