Method: projects.operations.cancel
HTTP 请求
POST https://earthengine.googleapis.com/v1/{name=projects/*/operations/**}:cancel
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
要取消的操作资源的名称。
|
响应正文
如果成功,响应正文将为空的 JSON 对象。
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/cloud-platform
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-06。
[null,null,["最后更新时间 (UTC):2025-03-06。"],[[["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"]]