Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Skip to Content
CLICommands

orl sandbox network-policy set

Replace a layer, part of the orl CLI for OpenRelay GPU VMs, pods, batches and billing. Usage, every flag and an example.

orl sandbox network-policy set --expected-version <expected-version> --file <file> --key <key>
orl sandbox network-policy set --expected-version <expected-version> --file <file>
orl sandbox network-policy set --expected-version <expected-version> --file <file> --user <user>

Replace a layer. The file holds the layer itself at every level: {"egress": ..., "dns": ...}. For the organization, --defaults-file holds the layer of a create that names no network; leaving it out writes none.

Flags

FlagTypeRequired
--defaults-filestringnothe organization's only: a JSON file holding the layer of a create that names no network
--expected-versionint64yesthe version the policy was read at (required)
--filestringyesa JSON file holding the layer (required)
--keystringnoan API key's layer, by key id
--userstringnoa member's layer, by user id

This wraps the putSandboxKeyNetworkPolicy, putSandboxNetworkPolicy, and putSandboxUserNetworkPolicy API operations.

On this page