Resource: Operation
This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
JSON representation |
---|
{ "name": string, "zone": string, "operationType": enum ( |
Fields | |
---|---|
name |
The server-assigned ID for the operation. |
zone |
The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead. |
operationType |
The operation type. |
status |
The current status of the operation. |
detail |
Detailed operation progress, if available. |
statusMessage |
Output only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead. |
selfLink |
Server-defined URL for the resource. |
targetLink |
Server-defined URL for the target of the operation. |
location |
[Output only] The name of the Google Compute Engine zone or region in which the cluster resides. |
startTime |
[Output only] The time the operation started, in RFC3339 text format. |
endTime |
[Output only] The time the operation completed, in RFC3339 text format. |
progress |
Output only. [Output only] Progress information for an operation. |
clusterConditions[] |
Which conditions caused the current cluster state. Deprecated. Use field error instead. |
nodepoolConditions[] |
Which conditions caused the current node pool state. Deprecated. Use field error instead. |
error |
The error result of the operation in case of failure. |
Type
Operation type.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Not set. |
CREATE_CLUSTER |
Cluster create. |
DELETE_CLUSTER |
Cluster delete. |
UPGRADE_MASTER |
A master upgrade. |
UPGRADE_NODES |
A node upgrade. |
REPAIR_CLUSTER |
Cluster repair. |
UPDATE_CLUSTER |
Cluster update. |
CREATE_NODE_POOL |
Node pool create. |
DELETE_NODE_POOL |
Node pool delete. |
SET_NODE_POOL_MANAGEMENT |
Set node pool management. |
AUTO_REPAIR_NODES |
Automatic node pool repair. |
AUTO_UPGRADE_NODES |
Automatic node upgrade. |
SET_LABELS |
Set labels. |
SET_MASTER_AUTH |
Set/generate master auth materials |
SET_NODE_POOL_SIZE |
Set node pool size. |
SET_NETWORK_POLICY |
Updates network policy for a cluster. |
SET_MAINTENANCE_POLICY |
Set the maintenance policy. |
Status
Current status of the operation.
Enums | |
---|---|
STATUS_UNSPECIFIED |
Not set. |
PENDING |
The operation has been created. |
RUNNING |
The operation is currently running. |
DONE |
The operation is done, either cancelled or completed. |
ABORTING |
The operation is aborting. |
OperationProgress
Information about operation (or operation stage) progress.
JSON representation |
---|
{ "name": string, "status": enum ( |
Fields | |
---|---|
name |
A non-parameterized string describing an operation stage. Unset for single-stage operations. |
status |
Status of an operation stage. Unset for single-stage operations. |
metrics[] |
Progress metric bundle, for example: metrics: [{name: "nodes done", intValue: 15}, {name: "nodes total", intValue: 32}] or metrics: [{name: "progress", doubleValue: 0.56}, {name: "progress scale", doubleValue: 1.0}] |
stages[] |
Substages of an operation or a stage. |
Metric
Progress metric is (string, int|float|string) pair.
JSON representation |
---|
{ "name": string, // Union field |
Fields | |
---|---|
name |
Required. Metric name, e.g., "nodes total", "percent done". |
Union field value . Strictly one of the values is required. value can be only one of the following: |
|
intValue |
For metrics with integer value. |
doubleValue |
For metrics with floating point value. |
stringValue |
For metrics with custom values (ratios, visual progress, etc.). |
Methods |
|
---|---|
|
Cancels the specified operation. |
|
Gets the specified operation. |
|
Lists all operations in a project in a specific zone or all zones. |