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

NameDatatypeDescription
destRangestringThe destination range of the route.
importedbooleanTrue if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
nextHopRegionstringThe region of peering route next hop, only applies to dynamic routes.
priorityintegerThe priority of the peering route.
typestringThe type of the peering route.

Methods

NameAccessible byRequired ParamsDescription
list_peering_routesSELECTnetwork, projectLists the peering routes exchanged over peering connection.

SELECT examples

Lists the peering routes exchanged over peering connection.

SELECT
destRange,
imported,
nextHopRegion,
priority,
type
FROM google.compute.networks_peering_routes
WHERE network = '{{ network }}'
AND project = '{{ project }}';