Skip to main content

virtual_network_gateways_bgp_peer_status

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

Overview

Namevirtual_network_gateways_bgp_peer_status
TypeResource
Idazure.network.virtual_network_gateways_bgp_peer_status

Fields

NameDatatypeDescription
asnintegerThe autonomous system number of the remote BGP peer.
connectedDurationstringFor how long the peering has been up.
localAddressstringThe virtual network gateway's local address.
messagesReceivedintegerThe number of BGP messages received.
messagesSentintegerThe number of BGP messages sent.
neighborstringThe remote BGP peer.
routesReceivedintegerThe number of routes learned from this peer.
statestringThe BGP peer state.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, virtualNetworkGatewayNameThe GetBgpPeerStatus operation retrieves the status of all BGP peers.

SELECT examples

The GetBgpPeerStatus operation retrieves the status of all BGP peers.

SELECT
asn,
connectedDuration,
localAddress,
messagesReceived,
messagesSent,
neighbor,
routesReceived,
state
FROM azure.network.virtual_network_gateways_bgp_peer_status
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkGatewayName = '{{ virtualNetworkGatewayName }}';