getOperation
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
비동기 API 메서드는 처리가 완료되기 전에 결과를 반환합니다. getOperation
를 사용하여 operationId
를 사용하여 비동기 작업의 상태를 가져옵니다.
메서드 서명
public Operation getOperation( GetOperationRequest request) throws CommonException;
GetOperationRequest
속성 이름 |
값 |
필수 |
설명 |
operationId |
string |
예 |
작업 ID입니다. |
오류 동작
오류가 발생하면 라이브러리는 다음 오류 코드 중 하나가 포함된 CommonException
를 발생시킵니다.
오류 코드 |
AUTHORIZATION_FAIL (리셀러가 작업을 소유하지 않은 경우) |
INTERNAL_SERVER_ERROR |
INVALID_OPERATION_ID |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eAsynchronous API methods use \u003ccode\u003egetOperation\u003c/code\u003e to check the status of an operation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetOperation\u003c/code\u003e method requires the \u003ccode\u003eoperationId\u003c/code\u003e as a string in the \u003ccode\u003eGetOperationRequest\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCommonException\u003c/code\u003e is thrown if an error occurs during the operation.\u003c/p\u003e\n"],["\u003cp\u003ePossible error codes include \u003ccode\u003eAUTHORIZATION_FAIL\u003c/code\u003e, \u003ccode\u003eINTERNAL_SERVER_ERROR\u003c/code\u003e, and \u003ccode\u003eINVALID_OPERATION_ID\u003c/code\u003e.\u003c/p\u003e\n"]]],["Asynchronous operations are tracked using `getOperation`, which requires an `operationId` to check their status. The `getOperation` method, part of the API, takes a `GetOperationRequest` and can throw a `CommonException`. Possible errors include `AUTHORIZATION_FAIL` (if the caller lacks ownership), `INTERNAL_SERVER_ERROR`, and `INVALID_OPERATION_ID`. The method returns before the operation is completed, allowing users to periodically retrieve updates via `getOperation`.\n"],null,["Asynchronous API methods return a result before the processing is complete. Use\n`getOperation` to retrieve the status of an asynchronous operation using its\n`operationId`.\n\nMethod signature \n\n public Operation getOperation( GetOperationRequest request) throws CommonException;\n\nGetOperationRequest\n\n| Property name | Value | Required | Description |\n|---------------|----------|----------|-------------------|\n| `operationId` | `string` | Yes | The operation ID. |\n\nError behavior\n\nIf an error occurs, the library throws a `CommonException` containing one of the\nfollowing error codes:\n\n| Error code |\n|------------------------------------------------------------------|\n| `AUTHORIZATION_FAIL` (if the reseller doesn't own the operation) |\n| `INTERNAL_SERVER_ERROR` |\n| `INVALID_OPERATION_ID` |"]]