---
title: "POST /v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel"
method: POST
path: "/v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel"
tags: ["projects"]
---

# POST /v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel

`POST /v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel`

Cancels the specified operation.

## Path parameters

- `projectId` string, required
- `zone` string, required
- `operationId` string, required

## Request body

- CancelOperationRequest — CancelOperationRequest cancels a single operation.
  - `zone` string — Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. This field has been deprecated and replaced by the name field.
  - `projectId` string — Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.
  - `name` string — The name (project, location, operation id) of the operation to cancel. Specified in the format `projects/*/locations/*/operations/*`.
  - `operationId` string — Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/container.md) · [All operations](https://skmtc.net/google/apis/container/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/container/versions/f20e7f9e2240/schema)
