Organízate con las colecciones
Guarda y clasifica el contenido según tus preferencias.
Inicia la cancelación asíncrona en una operación de larga duración. El servidor hace todo lo que puede para cancelar la operación, pero no se puede garantizar nada. Si el servidor no admite este método, devuelve google.rpc.Code.UNIMPLEMENTED. Los clientes pueden usar Operations.GetOperation u otros métodos para comprobar si la cancelación se ha realizado correctamente o si la operación se ha completado a pesar de la cancelación. Si la cancelación se realiza correctamente, la operación no se elimina, sino que se convierte en una operación con el valor Operation.error y el valor google.rpc.Status.code de 1, que corresponde a Code.CANCELLED.
Solicitud HTTP
POST https://storagebatchoperations.googleapis.com/v1/{name=projects/*/locations/global/operations/*}:cancel
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-11 (UTC)."],[],[],null,["# Method: projects.locations.operations.cancel\n\nStarts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use [Operations.GetOperation](/storage/docs/storagebatchoperations/reference/rest/v1/projects.locations.operations/get#google.longrunning.Operations.GetOperation) or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](/storage/docs/storagebatchoperations/reference/rest/v1/projects.locations.operations#Operation.FIELDS.error) value with a [google.rpc.Status.code](/storage/docs/storagebatchoperations/reference/rest/v1/projects.locations.operations#Status.FIELDS.code) of `1`, corresponding to `Code.CANCELLED`.\n\n### HTTP request\n\n`POST https://storagebatchoperations.googleapis.com/v1/{name=projects/*/locations/global/operations/*}:cancel`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]