Method: projects.locations.tcpRoutes.list

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

HTTP 要求

GET https://networkservices.googleapis.com/v1/{parent=projects/*/locations/*}/tcpRoutes

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

路徑參數

參數
parent

string

這是必要旗標,應列出 TcpRoutes 的專案和位置,格式為 projects/*/locations/global

授權需要指定資源 parent 的下列 IAM 權限:

  • networkservices.tcpRoutes.list

查詢參數

參數
pageSize

integer

每個呼叫可傳回的 TcpRoutes 數量上限。

pageToken

string

最後一個 ListTcpRoutesResponse 傳回的值表示這是先前 tcpRoutes.list 呼叫的後續動作,系統應傳回下一頁的資料。

要求主體

要求主體必須為空白。

回應主體

tcpRoutes.list 方法傳回的回應。

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

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

object (TcpRoute)

TcpRoute 資源清單。

nextPageToken

string

如果結果可能比此回應中顯示的結果多,就會加入 nextPageToken。如要取得下一組結果,請使用 nextPageToken 的值 (pageToken) 再次呼叫此方法。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱驗證總覽一文。