Method: projects.locations.codeRepositoryIndexes.list

列出给定项目和位置中的 CodeRepositoryIndexes。

HTTP 请求

GET https://cloudaicompanion.googleapis.com/v1/{parent=projects/*/locations/*}/codeRepositoryIndexes

网址采用 gRPC 转码语法。

路径参数

Parameters
parent

string

必需。ListCodeRepositoryIndexesRequest 的父级值

查询参数

Parameters
pageSize

integer

可选。请求的页面大小。 服务器返回的项可能要比请求的少。如果未指定,服务器将选择合适的默认值。

pageToken

string

可选。标识服务器应返回的结果页面的令牌。

请求正文

请求正文必须为空。

响应正文

对列出 CodeRepositoryIndexes 资源的回答消息。

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

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

object (CodeRepositoryIndex)

CodeRepositoryIndex 的列表

nextPageToken

string

标识服务器应返回的结果页面的令牌。

授权范围

需要以下 OAuth 范围:

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

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

IAM 权限

需要拥有 parent 资源的以下 IAM 权限:

  • cloudaicompanion.codeRepositoryIndexes.list

如需了解详情,请参阅 IAM 文档