Method: projects.locations.codeRepositoryIndexes.list

列出指定專案和位置中的 CodeRepositoryIndexes。

HTTP 要求

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

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

這是必要旗標,ListCodeRepositoryIndexesRequest 的父項值

查詢參數

參數
pageSize

integer

(非必要) 請求的頁面大小。伺服器傳回的項目數量可能會少於要求的項目數量。如未指定,伺服器會挑選適當的預設值。

pageToken

string

(非必要) 用來識別伺服器應傳回的結果頁面的符記。

要求主體

要求主體必須為空白。

回應主體

回覆程式碼存放區索引清單的訊息

如果成功,回應主體會含有以下結構的資料:

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

object (CodeRepositoryIndex)

CodeRepositoryIndex 清單

nextPageToken

string

用來識別伺服器應傳回的結果頁面的符記。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱 Authentication Overview

IAM 權限

需要在 parent 資源上具備下列 IAM 權限:

  • cloudaicompanion.codeRepositoryIndexes.list

詳情請參閱 身分與存取權管理說明文件