sbx policy rm network
| Description | Remove a network rule |
|---|---|
| Usage | sbx policy rm network [-g | SANDBOX] [flags] |
Description
Remove a network rule by rule ID, resource, or both.
Use -g/--global to remove from the global policy, or provide SANDBOX to remove from policy "local" scoped to that sandbox.
Use "sbx policy ls" to see active policies and their IDs/resources.
Options
| Option | Default | Description |
|---|---|---|
-g, --global | Remove from the global policy | |
--id | Remove by rule ID | |
--resource | Remove by resource value(s), comma-separated |
Global options
| Option | Default | Description |
|---|---|---|
-D, --debug | Enable debug logging |
Examples
# List policies to find the ID or resource to remove
sbx policy ls
# Remove a global rule by resource
sbx policy rm network -g --resource api.example.com
# Remove a global rule by ID
sbx policy rm network -g --id 2d3c1f0e-4a73-4e05-bc9d-f2f9a4b50d67
# Remove a sandbox-scoped rule by resource
sbx policy rm network my-sandbox --resource api.example.com