list-operations¶
- subtitle
ListOperations
- version
0.9.152
Description¶
To list all the long running operations on a given cluster.
list-operations is a paginated operation. Multiple API calls may be issued in order to retrieve the entire data set of results. You can disable pagination by providing the --no-paginate argument.
Synopsis¶
list-operations
--cluster-crn <value>
[--operation-statuses <value>]
[--workflow-operation <value>]
[--workflow-phase <value>]
[--max-items <value>]
[--starting-token <value>]
[--page-size <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton]
Options¶
--cluster-crn (string)
The CRN of the compute cluster.
--operation-statuses (array)
A list of Operation Status.
Syntax:
"string" "string" ...
Possible values:
* ``UNKNOWN``
* ``RUNNING``
* ``COMPLETED``
* ``FAILED``
* ``CANCELLED``
* ``TIMED_OUT``
--workflow-operation (string)
Defines the type of workflow operation. UNKNOWN - The operation is unknown. UPGRADE - Represents an upgrade operation. SUSPEND - Represents a suspend operation. RESUME - Represents a resume operation. UPDATE - Represents an update operation.
Possible values:
UNKNOWN
UPGRADE
SUSPEND
RESUME
UPDATE
--workflow-phase (string)
Defines the workflow phases of an operation. UNKNOWN - The workflow phase of operation is unknown. VALIDATE - The operation is in validation workflow phase. PREPARE - The operation is in preparation workflow phase. EXECUTE - The operation is in execution workflow phase. FINALIZE - The operation is in finalization workflow phase.
Possible values:
UNKNOWN
VALIDATE
PREPARE
EXECUTE
FINALIZE
--max-items (integer)
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
nextTokenwill be provided in the output that you can use to resume pagination. ThisnextTokenresponse element should not be used directly outside of the CDP CLI. This option cannnot be combined with theno-paginateCLI option. If no max-items value is specified, then a default value of 100 is used.
--starting-token (string)
A token to specify where to start paginating. This is the
nextTokenfrom a previously truncated response.
--page-size (integer)
The size of each page. Generally this does not need to be set and the default page size used is appropriate.
--cli-input-json (string)
Performs service operation based on the JSON string provided. The JSON string follows the format provided by
--generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.
--generate-cli-skeleton (boolean)
Prints a sample input JSON to standard output. Note the specified operation is not run if this argument is specified. The sample input can be used as an argument for
--cli-input-json.
Output¶
operationItems -> (array)
List of operations.
item -> (object)
Operation item structure.
operationId -> (string)
The unique ID of the operation.
clusterCrn -> (string)
The CRN of the cluster associated with the operation.
operationStatus -> (string)
Defines the execution status of an operation, workflow or activity. UNKNOWN - The execution status is unknown. RUNNING - The execution is currently running. COMPLETED - The execution has completed successfully. FAILED - The execution has failed. CANCELLED - The execution has been cancelled. TIMED_OUT - The execution has timed out.
workflowOperation -> (string)
Defines the type of workflow operation. UNKNOWN - The operation is unknown. UPGRADE - Represents an upgrade operation. SUSPEND - Represents a suspend operation. RESUME - Represents a resume operation. UPDATE - Represents an update operation.
startTime -> (datetime)
The start time of the operation.
lastUpdateTime -> (datetime)
The last time the operation status was updated.
message -> (string)
Additional details regarding operation status.
retryCount -> (integer)
Number of retires attempted. Its value is 0 for first operation.
nextPageToken -> (string)
Token for fetching the next page of results. If not present, there are no additional results.
Form Factors¶
public