列出 Google Workspace 订阅。如需了解如何使用此方法,请参阅列出 Google Workspace 订阅。
HTTP 请求
GET https://workspaceevents.googleapis.com/v1beta/subscriptions
网址采用 gRPC 转码语法。
查询参数
| 参数 | |
|---|---|
| pageSize | 
 可选。要返回的最大订阅数。服务返回的订阅的数量可能小于此值。 如果未指定或设为  最大值为 100。如果您指定的值大于 100,系统只会返回 100 个订阅。 | 
| pageToken | 
 可选。从之前的 list subscriptions 调用接收的页面令牌。提供此参数以检索后续页面。 进行分页时,过滤条件值应与提供页面令牌的调用相一致。传递其他值可能会导致意外结果。 | 
| filter | 
 必需。查询过滤条件。 您可以按事件类型 ( 您必须在查询中指定至少一种事件类型。如需按多种事件类型进行过滤,请使用  如需同时按事件类型和目标资源进行过滤,请使用  例如,以下查询有效: 服务器会拒绝无效查询,并返回  | 
请求正文
请求正文必须为空。
响应正文
SubscriptionsService.ListSubscriptions 的响应消息。
如果成功,响应正文将包含结构如下的数据:
| JSON 表示法 | 
|---|
| {
  "subscriptions": [
    {
      object ( | 
| 字段 | |
|---|---|
| subscriptions[] | 
 订阅列表。 | 
| nextPageToken | 
 可作为  | 
授权范围
需要以下 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/meetings.space.created
- https://www.googleapis.com/auth/meetings.space.readonly
- https://www.googleapis.com/auth/drive
- https://www.googleapis.com/auth/drive.file
- https://www.googleapis.com/auth/drive.metadata
- https://www.googleapis.com/auth/drive.metadata.readonly
- https://www.googleapis.com/auth/drive.readonly
如需了解详情,请参阅授权指南。