Skip to main content

virtual_network_gateways_learned_routes

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

Overview

Namevirtual_network_gateways_learned_routes
TypeResource
Idazure.network.virtual_network_gateways_learned_routes

Fields

The following fields are returned by SELECT queries:

List of advertised BGP routes.

NameDatatypeDescription
asPathstringThe route's AS path sequence.
localAddressstringThe gateway's local address.
networkstringThe route's network prefix.
nextHopstringThe route's next hop.
originstringThe source this route was learned from.
sourcePeerstringThe peer this route was learned from.
weightinteger (int32)The route's weight.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, virtualNetworkGatewayName, subscriptionIdThis operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers.

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
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
virtualNetworkGatewayNamestringThe name of the virtual network gateway.

SELECT examples

This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers.

SELECT
asPath,
localAddress,
network,
nextHop,
origin,
sourcePeer,
weight
FROM azure.network.virtual_network_gateways_learned_routes
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND virtualNetworkGatewayName = '{{ virtualNetworkGatewayName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;