Không bắt buộc. Số lượng gói thuê bao tối đa cần trả về. Dịch vụ có thể trả về ít hơn giá trị này.
Nếu bạn không chỉ định hoặc đặt thành 0, thì hệ thống sẽ trả về tối đa 50 gói thuê bao.
Giá trị tối đa là 100. Nếu bạn chỉ định một giá trị lớn hơn 100, hệ thống sẽ chỉ trả về 100 gói thuê bao.
pageToken
string
Không bắt buộc. Mã thông báo trang, nhận được từ một lệnh gọi danh sách đăng ký trước đó. Cung cấp tham số này để truy xuất trang tiếp theo.
Khi phân trang, giá trị bộ lọc phải khớp với lệnh gọi đã cung cấp mã thông báo trang. Việc chuyển một giá trị khác có thể dẫn đến kết quả không mong muốn.
filter
string
Bắt buộc. Bộ lọc truy vấn.
Bạn có thể lọc các gói thuê bao theo loại sự kiện (event_types) và tài nguyên mục tiêu (target_resource).
Bạn phải chỉ định ít nhất một loại sự kiện trong truy vấn của mình. Để lọc nhiều loại sự kiện, hãy sử dụng toán tử OR.
Để lọc theo cả loại sự kiện và tài nguyên mục tiêu, hãy sử dụng toán tử AND và chỉ định tên tài nguyên đầy đủ, chẳng hạn như //chat.googleapis.com/spaces/{space}.
Ví dụ: các truy vấn sau đây là hợp lệ:
event_types:"google.workspace.chat.membership.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created"
event_types:"google.workspace.chat.message.v1.created" AND
target_resource="//chat.googleapis.com/spaces/{space}"
( event_types:"google.workspace.chat.membership.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created" ) AND
target_resource="//chat.googleapis.com/spaces/{space}"
Máy chủ từ chối các truy vấn không hợp lệ do lỗi INVALID_ARGUMENT.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-08-22 UTC."],[[["Lists existing Google Workspace subscriptions, allowing retrieval of details like event types and target resources."],["Enables filtering of subscriptions by event types and target resource using query parameters, requiring at least one event type for filtering."],["Uses pagination to retrieve large lists of subscriptions, providing a `nextPageToken` for accessing subsequent pages."],["Requires specific OAuth scopes for authorization, such as `https://www.googleapis.com/auth/chat.bot` or `https://www.googleapis.com/auth/chat.spaces`, to access and manage subscriptions."],["Returns a response body containing a list of subscriptions and a token for pagination if further pages exist."]]],["This document outlines how to list Google Workspace subscriptions using a `GET` request to `https://workspaceevents.googleapis.com/v1/subscriptions`. Key parameters include `pageSize` (max 100) to limit results, `pageToken` for pagination, and a mandatory `filter` to specify event types and/or target resources using `OR` and `AND` operators. The request body is empty. The response body contains a list of `subscriptions` and an optional `nextPageToken` for subsequent pages. Specific OAuth scopes are required for authorization.\n"]]