Skip to main content

Run

Submit a job and wait for completion:

$ osapi client job run \
--json-file operation.json \
--target-hostname _any \
--timeout 60


Job ID: 550e8400-e29b-41d4-a716-446655440000
Status: completed
Hostname: worker-node-1
Result: {"hostname":"my-server"}

Flags

FlagDescriptionDefault
--json-filePath to the JSON file containing operation data
--target-hostnameTarget hostname (_any, _all, or specific host)
-t, --timeoutTimeout in seconds60
-p, --poll-intervalPoll interval in seconds2

This combines job submission and retrieval into a single command. It submits the job, polls for completion, and displays the results.