Method: operations.get
Получает последнее состояние длительной операции. Клиенты могут использовать этот метод для опроса результатов операции через определенные промежутки времени, рекомендованные службой API.
HTTP-запрос
GET https://workspaceevents.googleapis.com/v1beta/{name=operations/**}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
name | string Имя ресурса операции. |
Тело запроса
Тело запроса должно быть пустым.
Тело ответа
В случае успеха тело ответа содержит экземпляр Operation
.
Области авторизации
Требуется одна из следующих областей OAuth:
-
https://www.googleapis.com/auth/chat.bot
-
https://www.googleapis.com/auth/chat.spaces
-
https://www.googleapis.com/auth/chat.spaces.readonly
-
https://www.googleapis.com/auth/chat.messages
-
https://www.googleapis.com/auth/chat.messages.readonly
-
https://www.googleapis.com/auth/chat.messages.reactions
-
https://www.googleapis.com/auth/chat.messages.reactions.readonly
-
https://www.googleapis.com/auth/chat.memberships
-
https://www.googleapis.com/auth/chat.memberships.readonly
-
https://www.googleapis.com/auth/meet.space.created
-
https://www.googleapis.com/auth/meetings.space.created
-
https://www.googleapis.com/auth/meetings.space.readonly
Дополнительную информацию см. в руководстве по авторизации .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-10-26 UTC.
[null,null,["Последнее обновление: 2024-10-26 UTC."],[[["This API endpoint retrieves the latest state of a long-running operation, allowing clients to poll for results."],["It uses a `GET` request with the URL `https://workspaceevents.googleapis.com/v1beta/{name=operations/**}`, where `{name}` specifies the operation resource."],["The request body should be empty and a successful response returns an `Operation` object detailing the operation's status."],["Authorization requires one of the listed OAuth scopes related to Google Chat or Google Meet, providing varying levels of access."]]],["This content details how to get the latest state of a long-running operation via an HTTP `GET` request to a specified URL: `https://workspaceevents.googleapis.com/v1beta/{name=operations/**}`. The `name` path parameter, a string, represents the operation resource's name. The request body should be empty. A successful response returns an `Operation` instance. Access requires one of several specified OAuth scopes. Clients are able to use this to check the result of an operation.\n"]]