Avvia l'annullamento asincrono in un'operazione a lunga esecuzione. Il server fa del possibile per annullare l'operazione, ma il successo non è garantito. Se il server non supporta questo metodo, restituisce google.rpc.Code.UNIMPLEMENTED. I client possono utilizzare Operations.GetOperation o altri metodi per verificare se l'annullamento è riuscito o se l'operazione è stata completata nonostante l'annullamento. Se l'annullamento viene eseguito correttamente, l'operazione non viene eliminata, ma diventa un'operazione con un valore Operation.error con google.rpc.Status.code pari a 1, corrispondente a Code.CANCELLED.
Richiesta HTTP
POST https://clouddeploy.googleapis.com/v1/{name=projects/*/locations/*/operations/*}:cancel
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2024-06-27 UTC."],[[["This webpage details the process for initiating the asynchronous cancellation of a long-running operation, acknowledging that success is not guaranteed."],["The HTTP request to cancel an operation is a `POST` request to a specific URL structure using gRPC Transcoding, with the operation's name included as a path parameter."],["Canceling the operation requires an empty request body, meaning no data needs to be sent in the request."],["A successful cancellation will be confirmed with an empty JSON object in the response body, while the operation's status will contain a `Code.CANCELLED` error."],["Authorization for canceling an operation requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]