set_security_policy_state
Toggle a row-level security policy on or off for a Microsoft Fabric warehouse or SQL endpoint. Reversible ALTER SECURITY POLICY state change.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace": "<workspace>",
"item": "<item>",
"policy_name": "<policy_name>",
"enabled": "<enabled>"
},
"name": "set_security_policy_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| enabled | Yes | ||
| workspace | Yes | ||
| policy_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||