קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה מתחילה ביטול אסינכרוני של פעולה ממושכת. השרת עושה כמיטב יכולתו כדי לבטל את הפעולה, אבל אי אפשר להבטיח שהיא תבוטל. אם השרת לא תומך בשיטה הזו, הוא מחזיר את הערך google.rpc.Code.UNIMPLEMENTED. לקוחות יכולים להשתמש ב-Operations.GetOperation או בשיטות אחרות כדי לבדוק אם הביטול בוצע או אם הפעולה הושלמה למרות הביטול. אם הביטול בוצע בהצלחה, הפעולה לא נמחקת. במקום זאת, היא הופכת לפעולה עם ערך Operation.error עם google.rpc.Status.code של 1, שתואם ל-Code.CANCELLED.
בקשת HTTP
POST https://earthengine.googleapis.com/v1/{name=projects/*/operations/**}:cancel
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-03-06 (שעון UTC)."],[[["Initiates an asynchronous cancellation request for a long-running Earth Engine operation, with no guarantee of success and returning an `UNIMPLEMENTED` error if unsupported by the server."],["Upon successful cancellation, the operation is marked with a `Code.CANCELLED` error but is not deleted, and users can monitor its status through methods like `Operations.GetOperation`."],["The cancellation request is made using an HTTP POST to a specific URL, requires an empty request body, and uses the operation's name as a path parameter."],["To authorize the request, either the `earthengine` or `cloud-platform` OAuth scope is necessary."]]],["This content details the process for asynchronously canceling a long-running operation. Users initiate cancellation via a POST request to a specified URL, providing the operation's name. The server attempts cancellation, potentially returning `UNIMPLEMENTED`. Clients check the operation's status using `GetOperation`. Successful cancellation results in an operation with an error code `1` (`CANCELLED`), and the operation isn't deleted. The request body is empty, and the response, if successful, is also empty. Specific OAuth scopes are required.\n"]]