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-09-10 UTC."],[[["Lists existing Google Workspace subscriptions, allowing developers to manage event delivery configurations."],["Provides filtering options by event types and target resources for refined subscription retrieval."],["Uses pagination to handle large result sets, enabling retrieval of subscriptions in manageable chunks."],["Requires specific authorization scopes for access, ensuring secure management of sensitive data."],["Available within the Google Workspace Developer Preview Program, offering early access to this functionality."]]],["This describes how to list Google Workspace subscriptions using a `GET` request to `https://workspaceevents.googleapis.com/v1beta/subscriptions`. You can filter subscriptions by event type and target resource using the `filter` query parameter. Optional parameters include `pageSize` (max 100) and `pageToken` for pagination. The request body must be empty. The response contains a list of subscriptions and a `nextPageToken` for subsequent pages. Access requires specified OAuth scopes.\n"]]