# REST Resource: projects.zones.operations

- [Resource: Operation](https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.operations#Operation)
  - [JSON representation](https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.operations#Operation.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.operations#METHODS_SUMMARY)

## 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 (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.operations#Operation.Type`), "status": enum (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.operations#Operation.Status`), "detail": string, "statusMessage": string, "selfLink": string, "targetLink": string, "location": string, "startTime": string, "endTime": string, "progress": { object (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.operations#Operation.OperationProgress`) }, "clusterConditions": [ { object (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/StatusCondition`) } ], "nodepoolConditions": [ { object (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/StatusCondition`) } ], "error": { object (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/Shared.Types/Status`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The server-assigned ID for the operation. |
| `zone (deprecated)` | `string` > [!WARNING] > This item is deprecated! Output only. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead. |
| `operationType` | ``enum (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.operations#Operation.Type`)`` Output only. The operation type. |
| `status` | ``enum (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.operations#Operation.Status`)`` Output only. The current status of the operation. |
| `detail` | `string` Output only. Detailed operation progress, if available. |
| `statusMessage (deprecated)` | `string` > [!WARNING] > This item is deprecated! Output only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead. |
| `selfLink` | `string` Output only. Server-defined URI for the operation. Example: `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. |
| `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/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` |
| `location` | `string` Output only. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides. |
| `startTime` | `string` Output only. The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| `endTime` | `string` Output only. The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| `progress` | ``object (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.operations#Operation.OperationProgress`)`` Output only. Progress information for an operation. |
| `clusterConditions[] (deprecated)` | ``object (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/StatusCondition`)`` > [!WARNING] > This item is deprecated! Which conditions caused the current cluster state. Deprecated. Use field error instead. |
| `nodepoolConditions[] (deprecated)` | ``object (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/StatusCondition`)`` > [!WARNING] > This item is deprecated! Which conditions caused the current node pool state. Deprecated. Use field error instead. |
| `error` | ``object (`https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/Shared.Types/Status`)`` The error result of the operation in case of failure. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.operations/cancel` | Cancels the specified operation. |
| ### `https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.operations/get` | Gets the specified operation. |
| ### `https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.operations/list` | Lists all operations in a project in a specific zone or all zones. |