Method: projects.locations.gateways.routeViews.list

列出 RouteView

HTTP 要求

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

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

路徑參數

參數
parent

string

這是必要旗標,與路徑相關聯的閘道。格式:projects/{project_number}/locations/{location}/gateways/{gateway_name}

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

  • networkservices.route_views.list

查詢參數

參數
pageSize

integer

每次呼叫要傳回的 GatewayRouteView 數量上限。

pageToken

string

最後一個 ListGatewayRouteViewsResponse 傳回的值,表示這是先前 routeViews.list 呼叫的延續,且系統應傳回下一頁資料。

要求主體

要求主體必須為空白。

回應主體

routeViews.list 方法傳回的回應。

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

JSON 表示法
{
  "gatewayRouteViews": [
    {
      object (GatewayRouteView)
    }
  ],
  "nextPageToken": string,
  "unreachable": [
    string
  ]
}
欄位
gatewayRouteViews[]

object (GatewayRouteView)

GatewayRouteView 資源清單。

nextPageToken

string

可做為 pageToken 傳送的權杖,用於擷取後續網頁。如果省略這個欄位,就不會有後續頁面。

unreachable[]

string

無法連線的資源。當要求嘗試列出所有支援位置的所有資源,但部分位置暫時無法使用時,系統會填入這項資訊。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview