Startet den asynchronen Abbruch eines lang andauernden Vorgangs. Der Server unternimmt alles, um den Vorgang abzubrechen, aber der Erfolg kann nicht garantiert werden. Wenn der Server diese Methode nicht unterstützt, wird google.rpc.Code.UNIMPLEMENTED zurückgegeben. Kunden können Operations.GetOperation oder andere Methoden verwenden, um zu prüfen, ob der Abbruch erfolgreich war oder der Vorgang dennoch abgeschlossen wurde. Bei erfolgreichem Abbruch wird der Vorgang nicht gelöscht. Stattdessen wird daraus ein Vorgang mit einem Operation.error-Wert mit einem google.rpc.Status.code von 1, was Code.CANCELLED entspricht.
HTTP-Anfrage
POST https://dataproc.googleapis.com/v1/{name=projects/*/locations/*/operations/*}:cancel
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-03-04 (UTC)."],[[["This endpoint initiates an asynchronous cancellation for a long-running operation, offering a best-effort attempt that does not guarantee success."],["The HTTP request is a `POST` method to a specific URL defined by the provided syntax, targeting the cancellation of an operation."],["The endpoint expects a resource name as a path parameter to specify the operation intended for cancellation."],["The request body must be empty, and a successful cancellation results in an empty response body."],["Authorization to use this endpoint requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]