Method: projects.databases.collectionGroups.indexes.list

列出复合索引。

HTTP 请求

GET https://firestore.googleapis.com/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。格式为 projects/{projectId}/databases/{databaseId}/collectionGroups/{collectionId} 的父级名称

查询参数

参数
filter

string

要应用于列表结果的过滤条件。

pageSize

integer

要返回的结果数量。

pageToken

string

从上一次对 FirestoreAdmin.ListIndexes 的调用返回的页面令牌,可用于获取下一页结果。

请求正文

请求正文必须为空。

响应正文

FirestoreAdmin.ListIndexes 的响应。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "indexes": [
    {
      object (Index)
    }
  ],
  "nextPageToken": string
}
字段
indexes[]

object (Index)

请求的索引。

nextPageToken

string

可用于请求另一页结果的页面令牌。如果留空,则表示最后一页。

授权范围

需要以下 OAuth 范围之一:

  • https://www.googleapis.com/auth/datastore
  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅身份验证概览