sbx policy ls
| Description | List sandbox policy rules |
|---|---|
| Usage | sbx policy ls [SANDBOX] [flags] |
Description
List all active policy rules.
Displays the provenance, scope, rule name (or ID if no name is set), type, decision (allow/deny), and the associated resources for each rule.
When SANDBOX is specified, only policies that apply to that sandbox are shown (global rules plus rules scoped to that sandbox).
Options
| Option | Default | Description |
|---|---|---|
--type | all | Filter policies by type: "all" or "network" (default "all") |
Global options
| Option | Default | Description |
|---|---|---|
-D, --debug | Enable debug logging |
Examples
# List all policies
sbx policy ls
# List only network policies
sbx policy ls --type network
# List policies that apply to a specific sandbox
sbx policy ls my-sandbox