getऑपरेशन
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
एसिंक्रोनस एपीआई के तरीके, प्रोसेस पूरी होने से पहले नतीजा दिखाते हैं. किसी असिंक्रोनस ऑपरेशन के operationId
का इस्तेमाल करके, उसकी स्थिति जानने के लिए getOperation
का इस्तेमाल करें.
तरीके का हस्ताक्षर
public Operation getOperation( GetOperationRequest request) throws CommonException;
GetOperationRequest
प्रॉपर्टी का नाम |
मान |
ज़रूरी है |
ब्यौरा |
operationId |
string |
हां |
ऑपरेशन आईडी. |
गड़बड़ी का व्यवहार
गड़बड़ी होने पर, लाइब्रेरी CommonException
दिखाती है. इसमें गड़बड़ी का इनमें से कोई एक कोड होता है:
गड़बड़ी का कोड |
AUTHORIZATION_FAIL (अगर रीसेलर के पास ऑपरेशन का मालिकाना हक नहीं है) |
INTERNAL_SERVER_ERROR |
INVALID_OPERATION_ID |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[],["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,[]]