Method: operations.get
Nhận trạng thái mới nhất của một hoạt động diễn ra trong thời gian dài. Ứng dụng có thể sử dụng phương thức này để thăm dò kết quả hoạt động theo các khoảng thời gian do dịch vụ API đề xuất.
Yêu cầu HTTP
GET https://workspaceevents.googleapis.com/v1beta/{name=operations/**}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
name |
string
Tên của tài nguyên thao tác.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của Operation
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
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
Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-05-03 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-05-03 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"]]