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

The following fields are returned by SELECT queries:

List of BGP peer statuses.

NameDatatypeDescription
asninteger (int64)The autonomous system number of the remote BGP peer.
connectedDurationstringFor how long the peering has been up.
localAddressstringThe virtual network gateway's local address.
messagesReceivedinteger (int64)The number of BGP messages received.
messagesSentinteger (int64)The number of BGP messages sent.
neighborstringThe remote BGP peer.
routesReceivedinteger (int64)The number of routes learned from this peer.
statestringThe BGP peer state.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, virtualNetworkGatewayName, subscriptionIdpeerThe GetBgpPeerStatus operation retrieves the status of all 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.
peerstringThe IP address of the peer to retrieve the status of.

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 }}' -- required
AND virtualNetworkGatewayName = '{{ virtualNetworkGatewayName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND peer = '{{ peer }}'
;