Skip to main content

networks_peering_routes

Creates, updates, deletes, gets or lists a networks_peering_routes resource.

Overview

Namenetworks_peering_routes
TypeResource
Idgoogle.compute.networks_peering_routes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstring[Output Only] Unique identifier for the resource; defined by the server.
itemsarrayA list of ExchangedPeeringRoute resources.
kindstring[Output Only] Type of resource. Always compute#exchangedPeeringRoutesList for exchanged peering routes lists. (default: compute#exchangedPeeringRoutesList)
nextPageTokenstring[Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
selfLinkstring[Output Only] Server-defined URL for this resource.
warningobject[Output Only] Informational warning message.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_peering_routesselectproject, networkdirection, filter, maxResults, orderBy, pageToken, peeringName, region, returnPartialSuccessLists the peering routes exchanged over peering connection.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
networkstring
projectstring
directionstring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
peeringNamestring
regionstring
returnPartialSuccessboolean

SELECT examples

Lists the peering routes exchanged over peering connection.

SELECT
id,
items,
kind,
nextPageToken,
selfLink,
warning
FROM google.compute.networks_peering_routes
WHERE project = '{{ project }}' -- required
AND network = '{{ network }}' -- required
AND direction = '{{ direction }}'
AND filter = '{{ filter }}'
AND maxResults = '{{ maxResults }}'
AND orderBy = '{{ orderBy }}'
AND pageToken = '{{ pageToken }}'
AND peeringName = '{{ peeringName }}'
AND region = '{{ region }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}';