Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Bắt đầu huỷ không đồng bộ trên một thao tác chạy trong thời gian dài. Máy chủ sẽ cố gắng hết sức để huỷ thao tác, nhưng không đảm bảo sẽ huỷ thành công. Nếu không hỗ trợ phương thức này, máy chủ sẽ trả về google.rpc.Code.UNIMPLEMENTED. Ứng dụng có thể sử dụng Operations.GetOperation hoặc các phương thức khác để kiểm tra xem thao tác huỷ có thành công hay không hoặc liệu thao tác có hoàn tất mặc dù đã huỷ hay không. Khi huỷ thành công, thao tác sẽ không b�� xoá; thay vào đó, thao tác đó sẽ trở thành một thao tác có giá trị Operation.error với google.rpc.Status.code là 1, tương ứng với Code.CANCELLED.
Yêu cầu HTTP
POST https://earthengine.googleapis.com/v1/{name=projects/*/operations/**}:cancel
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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"]]