operations
Creates, updates, deletes, gets or lists a operations
resource.
Overview
Name | operations |
Type | Resource |
Id | google.container.operations |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The server-assigned ID for the operation. |
clusterConditions | array | Which conditions caused the current cluster state. Deprecated. Use field error instead. |
detail | string | Output only. Detailed operation progress, if available. |
endTime | string | Output only. The time the operation completed, in RFC3339 text format. |
error | object | The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. |
location | string | Output only. The name of the Google Compute Engine zone or region in which the cluster resides. |
nodepoolConditions | array | Which conditions caused the current node pool state. Deprecated. Use field error instead. |
operationType | string | Output only. The operation type. |
progress | object | Information about operation (or operation stage) progress. |
selfLink | string | Output only. Server-defined URI for the operation. Example: https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123 . |
startTime | string | Output only. The time the operation started, in RFC3339 text format. |
status | string | Output only. The current status of the operation. |
statusMessage | string | Output only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead. |
targetLink | string | Output only. Server-defined URI for the target of the operation. The format of this is a URI to the resource being modified (such as a cluster, node pool, or node). For node pool repairs, there may be multiple nodes being repaired, but only one will be the target. Examples: - ## https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster ## https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node |
zone | string | Output only. The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_operations_get | SELECT | locationsId, operationsId, projectsId | Gets the specified operation. |
projects_locations_operations_list | SELECT | locationsId, projectsId | Lists all operations in a project in a specific zone or all zones. |
projects_zones_operations_get | SELECT | operationId, projectId, zone | Gets the specified operation. |
projects_zones_operations_list | SELECT | projectId, zone | Lists all operations in a project in a specific zone or all zones. |
projects_locations_operations_cancel | EXEC | locationsId, operationsId, projectsId | Cancels the specified operation. |
projects_zones_operations_cancel | EXEC | operationId, projectId, zone | Cancels the specified operation. |
SELECT
examples
Lists all operations in a project in a specific zone or all zones.
SELECT
name,
clusterConditions,
detail,
endTime,
error,
location,
nodepoolConditions,
operationType,
progress,
selfLink,
startTime,
status,
statusMessage,
targetLink,
zone
FROM google.container.operations
WHERE projectId = '{{ projectId }}'
AND zone = '{{ zone }}';