Zum Hauptinhalt springen

GetOperation

Shows an operation of an asynchronous CK method (e.g. a dump): state, progress and the result or error. Read only.

Examples​

Show an operation:

octo-cli -c GetOperation -id "93c1a391ba834f71815763e7897cc2cf"

Wait until the operation is final, printing its progress:

octo-cli -c GetOperation -id "93c1a391ba834f71815763e7897cc2cf" -w

Options​

ShortLongRequiredDescription
-id--operationIdyesId of the operation (printed by the command that started it, e.g. Dump)
-w--waitnoWait until the operation has succeeded or failed and print its progress meanwhile
-j--jsonnoOutput the operation as JSON

Notes​

The tenant is the tenant of the context. The caller who started the operation and tenant administrators can read it.

Operations are kept for a retention period after they ended (7 days by default, configurable on the platform). An unknown, expired or foreign id is reported as OPERATION_NOT_FOUND.

-w ends with exit code -3 when the operation failed. Stopping the command (Ctrl+C) only stops waiting; operations cannot be cancelled.

Standard output carries only the answer (text or -j JSON); banner and log lines go to standard error, so the output can be piped (e.g. to jq).