policy-set
Manage governance policy sets and policy rules
Authentication scope: fabric
List policy sets in a workspace
fabio policy-set list --workspace <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--no-recursive |
bool |
No | Only list policy sets directly in the root folder |
--root-folder-id |
string |
No | Filter to a specific root folder ID |
Examples
fabio policy-set list --workspace $WSfabio policy-set list --workspace $WS --root-folder-id $FOLDER --no-recursiveRead-only · Returns list
Show a policy set
fabio policy-set show --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
Examples
fabio policy-set show --workspace $WS --id $POLICY_SETRead-only · Returns object
create
Section titled “create”Create a policy set
fabio policy-set create --workspace <value> --name <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--name |
string |
Yes | Display name |
--description |
string |
No | Description (maximum 256 characters) |
--folder-id |
string |
No | Folder ID (defaults to the workspace root) |
--scope |
enum |
No | Policy scope for a creation-payload request One of: Tenant, Capacity. |
--definition |
string |
No | Full policy-set definition envelope as inline JSON |
--definition-file |
string |
No | Path to a full policy-set definition envelope |
Examples
fabio policy-set create --workspace $WS --name "Capacity governance" --scope Capacity --dry-runfabio policy-set create --workspace $WS --name "Tenant governance" --definition-file policy-set-definition.json --dry-runMutates state · Returns object
update
Section titled “update”Update policy-set properties
fabio policy-set update --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
--name |
string |
No | New display name |
--description |
string |
No | New description |
Examples
fabio policy-set update --workspace $WS --id $POLICY_SET --description "Updated governance policy" --dry-runMutates state · Returns object
delete
Section titled “delete”Delete a policy set
fabio policy-set delete --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
Examples
fabio policy-set delete --workspace $WS --id $POLICY_SET --dry-runMutates state · Destructive · Returns void
get-definition
Section titled “get-definition”Get a policy-set definition
fabio policy-set get-definition --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
--format |
enum |
No | Definition format (currently Beta) One of: Beta. |
--decode |
bool |
No | Decode base64 definition parts |
Examples
fabio policy-set get-definition --workspace $WS --id $POLICY_SET --format Beta --decodeRead-only · Long-running operation · Returns object
update-definition
Section titled “update-definition”Replace a policy-set definition
fabio policy-set update-definition --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
--file |
string |
No | Path to a raw policySet.json part or full definition envelope |
--content |
string |
No | Inline raw policySet.json content or full definition envelope |
--update-metadata |
bool |
No | Update item metadata from a supplied .platform definition part |
Examples
fabio policy-set update-definition --workspace $WS --id $POLICY_SET --file policySet.json --dry-runfabio policy-set update-definition --workspace $WS --id $POLICY_SET --file definition.json --update-metadata --dry-runMutates state · Destructive · Long-running operation · Returns object
list-rules
Section titled “list-rules”List policy rules (beta)
fabio policy-set list-rules --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
Examples
fabio policy-set list-rules --workspace $WS --id $POLICY_SETRead-only · Returns list
show-rule
Section titled “show-rule”Show a policy rule (beta)
fabio policy-set show-rule --workspace <value> --id <value> --rule-id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
--rule-id |
string |
Yes | Policy rule ID |
Examples
fabio policy-set show-rule --workspace $WS --id $POLICY_SET --rule-id $RULERead-only · Returns object
create-rule
Section titled “create-rule”Create a policy rule (beta)
fabio policy-set create-rule --workspace <value> --id <value> --name <value> --policy <value> --conditions <value> --effects <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
--name |
string |
Yes | Rule display name |
--description |
string |
No | Rule description |
--policy |
enum |
Yes | Policy governed by the rule One of: ItemCreation, WorkspaceSettingsEditing. |
--conditions |
string |
Yes | Conditions JSON array |
--effects |
string |
Yes | Effects JSON array |
Examples
fabio policy-set create-rule --workspace $WS --id $POLICY_SET --name "Approved items" --policy ItemCreation --conditions '[{"type":"Dynamic","targetProperty":"item.type","predicate":{"operator":"AnyOf","values":["Lakehouse","Warehouse"]}}]' --effects '[{"type":"Allow"}]' --dry-runMutates state · Returns object
update-rule
Section titled “update-rule”Update a policy rule (beta)
fabio policy-set update-rule --workspace <value> --id <value> --rule-id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
--rule-id |
string |
Yes | Policy rule ID |
--name |
string |
No | New display name |
--description |
string |
No | New description |
--conditions |
string |
No | Replacement conditions JSON array |
Examples
fabio policy-set update-rule --workspace $WS --id $POLICY_SET --rule-id $RULE --name "Updated rule" --dry-runMutates state · Returns object
delete-rule
Section titled “delete-rule”Delete a policy rule (beta)
fabio policy-set delete-rule --workspace <value> --id <value> --rule-id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
--rule-id |
string |
Yes | Policy rule ID |
Examples
fabio policy-set delete-rule --workspace $WS --id $POLICY_SET --rule-id $RULE --dry-runMutates state · Destructive · Returns void
replace-rules-by-policy
Section titled “replace-rules-by-policy”Replace every rule for one policy (beta)
fabio policy-set replace-rules-by-policy --workspace <value> --id <value> --policy <value> --policy-rules <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
--policy |
enum |
Yes | Policy whose rules will be replaced One of: ItemCreation, WorkspaceSettingsEditing. |
--policy-rules |
string |
Yes | Complete replacement policyRules JSON array |
Examples
fabio policy-set replace-rules-by-policy --workspace $WS --id $POLICY_SET --policy ItemCreation --policy-rules '[{"displayName":"Approved items","conditions":[{"type":"Static","value":true}],"effects":[{"type":"Allow"}]}]' --dry-runMutates state · Destructive · Returns object
activate
Section titled “activate”Activate a capacity-scoped policy set
fabio policy-set activate --workspace <value> --id <value> --capacity-id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
--capacity-id |
string |
Yes | Capacity ID on which to activate the policy set |
--allow-replace |
bool |
No | Replace the currently active policy set on this capacity |
Examples
fabio policy-set activate --workspace $WS --id $POLICY_SET --capacity-id $CAPACITY_ID --dry-runfabio policy-set activate --workspace $WS --id $POLICY_SET --capacity-id $CAPACITY_ID --allow-replace --dry-runMutates state · Returns object
deactivate
Section titled “deactivate”Deactivate a capacity-scoped policy set
fabio policy-set deactivate --workspace <value> --id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--workspace |
string |
Yes | Workspace ID |
--id |
string |
Yes | Policy set ID |
Examples
fabio policy-set deactivate --workspace $WS --id $POLICY_SET --dry-runMutates state · Returns object
get-active-for-capacity
Section titled “get-active-for-capacity”Show the active policy set on a capacity
fabio policy-set get-active-for-capacity --capacity-id <value>| Flag | Type | Required | Description |
|---|---|---|---|
--capacity-id |
string |
Yes | Capacity ID |
Examples
fabio policy-set get-active-for-capacity --capacity-id $CAPACITY_IDRead-only · Returns object
