getOperation

非同步 API 方法會在處理完成之前傳回結果。使用 getOperation 即可透過 operationId 擷取非同步作業的狀態。

方法簽章

public Operation getOperation( GetOperationRequest request) throws CommonException;

GetOperationRequest

資源名稱 必要 說明
operationId string 作業 ID。

錯誤行為

如果發生錯誤,程式庫會擲回包含下列其中一個錯誤代碼的 CommonException

錯誤代碼
AUTHORIZATION_FAIL (如果經銷商並非作業擁有者)
INTERNAL_SERVER_ERROR
INVALID_OPERATION_ID