Skip to main content

virtual_hub_bgp_connections

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

Overview

Namevirtual_hub_bgp_connections
TypeResource
Idazure.network.virtual_hub_bgp_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
asPathstringThe route's AS path sequence.
localAddressstringThe peer'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.
weightintegerThe route's weight.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_learned_routesselectresource_group_name, hub_name, connection_name, subscription_idRetrieves a list of routes the virtual hub bgp connection has learned.
listselectresource_group_name, virtual_hub_name, subscription_idRetrieves the details of all VirtualHubBgpConnections.
list_advertised_routesexecresource_group_name, hub_name, connection_name, subscription_idRetrieves a list of routes the virtual hub bgp connection is advertising to the specified peer.

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
connection_namestringThe name of the bgp connection. Required.
hub_namestringThe name of the virtual hub. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
virtual_hub_namestringThe name of the VirtualHub. Required.

SELECT examples

Retrieves a list of routes the virtual hub bgp connection has learned.

SELECT
asPath,
localAddress,
network,
nextHop,
origin,
sourcePeer,
weight
FROM azure.network.virtual_hub_bgp_connections
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND hub_name = '{{ hub_name }}' -- required
AND connection_name = '{{ connection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Retrieves a list of routes the virtual hub bgp connection is advertising to the specified peer.

EXEC azure.network.virtual_hub_bgp_connections.list_advertised_routes 
@resource_group_name='{{ resource_group_name }}' --required,
@hub_name='{{ hub_name }}' --required,
@connection_name='{{ connection_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;