Skip to main content

oc sandbox create

Create a new sandbox. Alias: oc create HTTP API →
--timeout
int
default:"300"
Idle timeout in seconds
--cpu
int
default:"0"
CPU cores (0 = platform default)
--memory
int
default:"0"
Memory in MB (0 = platform default)
--env
string
Environment variable KEY=VALUE (repeatable)
--metadata
string
Metadata KEY=VALUE (repeatable)
oc create --timeout 600 --cpu 2 --memory 1024 --env NODE_ENV=production

oc sandbox list

List all running sandboxes. Alias: oc ls HTTP API → Output columns: ID, TEMPLATE, STATUS, CPU, MEM, AGE
oc ls
oc ls --json

oc sandbox get <id>

Show detailed information for a sandbox. HTTP API → Output: ID, Template, Status, CPU, Memory, Started, Ends.

oc sandbox kill <id>

Terminate and remove a sandbox. HTTP API →

oc sandbox hibernate <id>

Snapshot VM state and stop the sandbox. Displays snapshot size on success. HTTP API →

oc sandbox wake <id>

Resume a hibernated sandbox. HTTP API →
--timeout
int
default:"300"
Idle timeout in seconds after wake

oc sandbox set-timeout <id> <seconds>

Update the idle timeout for a running sandbox. HTTP API →
oc sandbox set-timeout sb-abc123 600