Method: operations.get
آخرین وضعیت یک عملیات طولانی مدت را دریافت می کند. مشتریان می توانند از این روش برای نظرسنجی نتیجه عملیات در فواصل زمانی که توسط سرویس API توصیه می شود استفاده کنند.
درخواست HTTP
GET https://vault.googleapis.com/v1/{name=operations/**}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
name | string نام منبع عملیات. |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از Operation
است.
محدوده مجوز
به یکی از حوزه های OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/ediscovery.readonly
-
https://www.googleapis.com/auth/ediscovery
برای اطلاعات بیشتر، بهOAuth 2.0 Overview .
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-02-05 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-02-05 بهوقت ساعت هماهنگ جهانی."],[[["Retrieves the current status of a long-running operation, allowing clients to periodically check for updates."],["The operation's state can be accessed via a GET request to a specific URL, requiring the operation's name as a path parameter."],["The request body should be empty, and a successful response will contain an Operation object describing the operation's status."],["Authorization necessitates using specific OAuth scopes associated with eDiscovery permissions."]]],["This describes retrieving the latest status of a long-running operation via a `GET` request. The URL is constructed using gRPC Transcoding syntax and requires a `name` path parameter specifying the operation resource. The request body is empty. A successful response returns an `Operation` instance. Authorization requires either `https://www.googleapis.com/auth/ediscovery.readonly` or `https://www.googleapis.com/auth/ediscovery` OAuth scopes. Users are encouraged to poll this endpoint.\n"]]