virtual_network_gateways_learned_routes
Creates, updates, deletes, gets or lists a virtual_network_gateways_learned_routes
resource.
Overview
Name | virtual_network_gateways_learned_routes |
Type | Resource |
Id | azure.network.virtual_network_gateways_learned_routes |
Fields
Name | Datatype | Description |
---|---|---|
asPath | string | The route's AS path sequence. |
localAddress | string | The gateway's local address. |
network | string | The route's network prefix. |
nextHop | string | The route's next hop. |
origin | string | The source this route was learned from. |
sourcePeer | string | The peer this route was learned from. |
weight | integer | The route's weight. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, subscriptionId, virtualNetworkGatewayName | This operation retrieves a list of routes the virtual network gateway has learned, including routes learned from BGP peers. |
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 }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkGatewayName = '{{ virtualNetworkGatewayName }}';