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

NameDatatypeDescription
idtextResource ID.
nametextName of the connection.
connectionNametextfield from the properties object
connection_statetextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
hub_virtual_network_connectiontextfield from the properties object
peer_asntextfield from the properties object
peer_iptextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextConnection type.
virtualHubNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionName, resourceGroupName, subscriptionId, virtualHubNameRetrieves the details of a Virtual Hub Bgp Connection.
listSELECTresourceGroupName, subscriptionId, virtualHubNameRetrieves the details of all VirtualHubBgpConnections.
create_or_updateINSERTconnectionName, resourceGroupName, subscriptionId, virtualHubNameCreates a VirtualHubBgpConnection resource if it doesn't exist else updates the existing VirtualHubBgpConnection.
deleteDELETEconnectionName, resourceGroupName, subscriptionId, virtualHubNameDeletes a VirtualHubBgpConnection.

SELECT examples

Retrieves the details of all VirtualHubBgpConnections.

SELECT
id,
name,
connectionName,
connection_state,
etag,
hub_virtual_network_connection,
peer_asn,
peer_ip,
provisioning_state,
resourceGroupName,
subscriptionId,
type,
virtualHubName
FROM azure.network.vw_virtual_hub_bgp_connections
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';

INSERT example

Use the following StackQL query and manifest file to create a new virtual_hub_bgp_connections resource.

/*+ create */
INSERT INTO azure.network.virtual_hub_bgp_connections (
connectionName,
resourceGroupName,
subscriptionId,
virtualHubName,
properties,
name,
id
)
SELECT
'{{ connectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualHubName }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified virtual_hub_bgp_connections resource.

/*+ delete */
DELETE FROM azure.network.virtual_hub_bgp_connections
WHERE connectionName = '{{ connectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';