Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
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://{TRANSLATION_GDC_ENDPOINT}/v3/{name}:cancel
Pfadparameter
Parameter
name
string
Der Name der abzubrechenden Vorgangsressource
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich ist, ist der Antworttext leer.
[[["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-07-16 (UTC)."],[[["This API call initiates the cancellation of a long-running operation, with no guarantee of success."],["Clients can verify the cancellation's outcome or operation completion status through `Operations.GetOperation` or alternative methods."],["A successful cancellation results in the operation receiving an error status indicating `Code.CANCELLED`, rather than deletion."],["The HTTP request for cancellation is a POST request to a specific endpoint, requiring the operation's name in the path and an empty request body."],["Authorization requires either the `https://www.googleapis.com/auth/cloud-translation` or `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]