getOperation
异步 API 方法会在处理完成之前返回一个结果。使用 getOperation
通过异步操作的 operationId
检索其状态。
方法签名
public Operation getOperation( GetOperationRequest request) throws CommonException;
GetOperationRequest
属性名称 |
值 |
必填 |
说明 |
operationId |
string |
是 |
操作 ID。 |
错误行为
如果发生错误,该库会抛出包含以下错误代码之一的 CommonException
:
错误代码 |
AUTHORIZATION_FAIL (如果转销商不是操作所有者) |
INTERNAL_SERVER_ERROR |
INVALID_OPERATION_ID |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-09。
[null,null,["最后更新时间 (UTC):2024-11-09。"],[[["Asynchronous API methods use `getOperation` to check the status of an operation."],["The `getOperation` method requires the `operationId` as a string in the `GetOperationRequest`."],["`CommonException` is thrown if an error occurs during the operation."],["Possible error codes include `AUTHORIZATION_FAIL`, `INTERNAL_SERVER_ERROR`, and `INVALID_OPERATION_ID`."]]],[]]