protect workload
Manage the workloads
protect workload <COMMAND>Commands:
launchLaunch a new workload.execExecute a command inside the workload.attachAttach to a workload console.startStart a workload.stopStop a workload.destroyDestroy a workload.listList workload information.watchWatch for workload changes.
launch
protect workload launch [OPTIONS] --zone <ZONE> <OCI> [COMMAND]...Arguments:
<OCI>Container image for zone to use.[COMMAND]...Command to run the workload.
Options:
--image-format <IMAGE_FORMAT>Image format [default: squashfs] [possible values: squashfs, erofs].--pull-overwrite-cacheOverwrite image cache on pull.--pull-updateUpdate image on pull.-n, --name <NAME>Name of the workload.-W, --waitWait for the workload to be started.-t, --ttyAllocate tty for the workload.-a, --attachAttach to workload console.-e, --env <ENV>Environment variables set in the workload.-m, --mounts <MOUNTS>Mount host directories into the workload.-w, --working-directory <WORKING_DIRECTORY>Working directory.--user <USER>User name or id.--group <GROUP>Group name or id.-z, --zone <ZONE>Zone to launch on, can be a name or id.
exec
protect workload exec [OPTIONS] <WORKLOAD> [COMMAND]...Arguments:
<WORKLOAD>Workload to exec inside, either the name or the uuid.[COMMAND]...Command to run inside the zone.
Options:
-e, --env <ENV>Environment variables.-w, --working-directory <WORKING_DIRECTORY>Working directory.-t, --ttyAllocate tty.--user <USER>User name or id.--group <GROUP>Group name or id.
attach
protect workload attach <WORKLOAD>Arguments:
<WORKLOAD>Workload to attach to, either the name or the uuid.
start
protect workload start <WORKLOAD>Arguments:
<WORKLOAD>Workload to attach to, either the name or the uuid.
stop
protect workload stop <WORKLOAD>Arguments:
<WORKLOAD>Workload to attach to, either the name or the uuid.
destroy
protect workload destroy [OPTIONS] <WORKLOAD>Arguments:
<WORKLOAD>Workload to destroy, either the name or the uuid.
Options:
-W, --waitWait for the destruction of the workload to complete.-a, --allDestroy all workloads matching the input.-l, --selector <SELECTOR>A selector for filtering the result set. Currently only supports ‘=’ and the ‘status.state’ field. Supported states include ‘creating’, ‘created’, ‘running’, ‘completed’, ‘destroying’, ‘destroyed’ and ‘failed’, with or without the ‘workloadstate’ prefix. (for example--selector status.state=failedor--selector status.state=WORKLOAD_STATE_FAILED).
list
protect workload list [OPTIONS] [WORKLOAD]Arguments:
[WORKLOAD]Limit to a single workload, either the name or the uuid.
Options:
-o, --output <OUTPUT>Output format [default: table] [possible values: table, json, json-pretty, jsonl, yaml, key-value, simple].-l, --selector <SELECTOR>A selector for filtering the result set. Currently only supports ‘=’ and the ‘status.state’ field. Supported states include ‘creating’, ‘created’, ‘running’, ‘completed’, ‘destroying’, ‘destroyed’ and ‘failed’, with or without the ‘workloadstate’ prefix. (for example--selector status.state=failedor--selector status.state=WORKLOAD_STATE_FAILED).
watch
protect workload watch [OPTIONS]
```json
Options:
- `-o, --output <OUTPUT>` Output format [default: simple] [possible values: simple, json, key-value].Last updated on