Method: projects.locations.gateways.routeViews.list

列出 RouteView

HTTP 请求

GET https://networkservices.googleapis.com/v1alpha1/{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 调用的延续,并且系统应返回下一页数据。

请求正文

请求正文必须为空。

响应正文

pathViews.list 方法返回的响应。

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

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

object (GatewayRouteView)

GatewayRouteView 资源列表。

nextPageToken

string

可作为 pageToken 发送并用于检索下一页的令牌。如果省略此字段,则不存在后续页面。

授权范围

需要以下 OAuth 范围:

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

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