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
| Flag | Type | Required | |
|---|---|---|---|
--defaults-file | string | no | the organization's only: a JSON file holding the layer of a create that names no network |
--expected-version | int64 | yes | the version the policy was read at (required) |
--file | string | yes | a JSON file holding the layer (required) |
--key | string | no | an API key's layer, by key id |
--user | string | no | a member's layer, by user id |
This wraps the putSandboxKeyNetworkPolicy, putSandboxNetworkPolicy, and putSandboxUserNetworkPolicy API operations.
orl sandbox network-policy get
Print a layer and the policy's version; the organization's lists the members and keys with a layer, part of the orl CLI for OpenRelay GPU VMs, pods, batches…
orl sandbox pause
Pause a sandbox: saved on its host and stopped until resume, part of the orl CLI for OpenRelay GPU VMs, pods, batches and billing.