Method: projects.locations.global.policyBasedRoutes.list

Lists policy-based routes in a given project and location.

HTTP request

GET https://networkconnectivity.googleapis.com/v1/{parent=projects/*/locations/global}/policyBasedRoutes

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource's name.

Authorization requires the following IAM permission on the specified resource parent:

  • networkconnectivity.policyBasedRoutes.list

Query parameters

Parameters
pageSize

integer

The maximum number of results per page that should be returned.

pageToken

string

The page token.

filter

string

A filter expression that filters the results listed in the response.

orderBy

string

Sort the results by a certain order.

Request body

The request body must be empty.

Response body

Response for [PolicyBasedRouting.ListPolicyBasedRoutes][] method.

If successful, the response body contains data with the following structure:

JSON representation
{
  "policyBasedRoutes": [
    {
      object (PolicyBasedRoute)
    }
  ],
  "nextPageToken": string,
  "unreachable": [
    string
  ]
}
Fields
policyBasedRoutes[]

object (PolicyBasedRoute)

Policy-based routes to be returned.

nextPageToken

string

The next pagination token in the List response. It should be used as pageToken for the following request. An empty value means no more result.

unreachable[]

string

Locations that could not be reached.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.