Skip to main content

operations

Creates, updates, deletes, gets or lists a operations resource.

Overview

Nameoperations
TypeResource
Idgoogle.container.operations

Fields

NameDatatypeDescription
namestringOutput only. The server-assigned ID for the operation.
clusterConditionsarrayWhich conditions caused the current cluster state. Deprecated. Use field error instead.
detailstringOutput only. Detailed operation progress, if available.
endTimestringOutput only. The time the operation completed, in RFC3339 text format.
errorobjectThe 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.
locationstringOutput only. The name of the Google Compute Engine zone or region in which the cluster resides.
nodepoolConditionsarrayWhich conditions caused the current node pool state. Deprecated. Use field error instead.
operationTypestringOutput only. The operation type.
progressobjectInformation about operation (or operation stage) progress.
selfLinkstringOutput only. Server-defined URI for the operation. Example: https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123.
startTimestringOutput only. The time the operation started, in RFC3339 text format.
statusstringOutput only. The current status of the operation.
statusMessagestringOutput only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead.
targetLinkstringOutput 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
zonestringOutput only. The name of the Google Compute Engine zone in which the operation is taking place. This field is deprecated, use location instead.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_operations_getSELECTlocationsId, operationsId, projectsIdGets the specified operation.
projects_locations_operations_listSELECTlocationsId, projectsIdLists all operations in a project in a specific zone or all zones.
projects_zones_operations_getSELECToperationId, projectId, zoneGets the specified operation.
projects_zones_operations_listSELECTprojectId, zoneLists all operations in a project in a specific zone or all zones.
projects_locations_operations_cancelEXEClocationsId, operationsId, projectsIdCancels the specified operation.
projects_zones_operations_cancelEXECoperationId, projectId, zoneCancels 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 }}';