Method: operations.get
آخرین وضعیت یک عملیات طولانی مدت را دریافت می کند. مشتریان می توانند از این روش برای نظرسنجی نتیجه عملیات در فواصل زمانی که توسط سرویس API توصیه می شود استفاده کنند.
درخواست HTTP
GET https://cloudsearch.googleapis.com/v1/{name=operations/**}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
name | string نام منبع عملیات. |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از Operation
است.
محدوده مجوز
به یکی از حوزه های OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/cloud_search.indexing
-
https://www.googleapis.com/auth/cloud_search.debug
-
https://www.googleapis.com/auth/cloud_search.settings.indexing
-
https://www.googleapis.com/auth/cloud_search.settings.query
-
https://www.googleapis.com/auth/cloud_search.settings
-
https://www.googleapis.com/auth/cloud_search
برای اطلاعات بیشتر، به راهنمای مجوز مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-06 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-06 بهوقت ساعت هماهنگ جهانی."],[[["This API endpoint retrieves the latest status of a long-running operation, allowing clients to monitor progress."],["The request is made using an HTTP GET method to the specified URL with the operation's name as a path parameter."],["An empty request body is required, and a successful response provides an `Operation` object containing the current status details."],["Authorization is necessary using one of the listed OAuth scopes, granting access to the Cloud Search API functionalities."]]],[]]