network command updates the egress (outbound) rules of a running sandbox, letting you control which external destinations the sandbox is allowed or denied to reach. Rules are applied to a sandbox by its ID and take effect on the running sandbox.
Note: If no
allowOut is specified, all outbound traffic is allowed. Omitting both --allow-out and --deny-out clears all egress rules.Prerequisites
Set your API key in the environment before running the command:CLI
Usage
CLI
A
destination is an IP address or CIDR range, for example 1.1.1.1 or 8.8.8.0/24.
Examples
CLI
CLI
CLI
Output
Note: If the sandbox ID does not exist, the command reports
Sandbox <sandboxID> wasn't found and exits with a non-zero status.