Skip to main content

virtual_network_gateway_connections

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

Overview

Namevirtual_network_gateway_connections
TypeResource
Idazure.network.virtual_network_gateway_connections

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
authorization_keytextfield from the properties object
connection_modetextfield from the properties object
connection_protocoltextfield from the properties object
connection_statustextfield from the properties object
connection_typetextfield from the properties object
dpd_timeout_secondstextfield from the properties object
egress_bytes_transferredtextfield from the properties object
egress_nat_rulestextfield from the properties object
enable_bgptextfield from the properties object
enable_private_link_fast_pathtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
express_route_gateway_bypasstextfield from the properties object
gateway_custom_bgp_ip_addressestextfield from the properties object
ingress_bytes_transferredtextfield from the properties object
ingress_nat_rulestextfield from the properties object
ipsec_policiestextfield from the properties object
local_network_gateway2textfield from the properties object
locationtextResource location.
peertextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
routing_weighttextfield from the properties object
shared_keytextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
traffic_selector_policiestextfield from the properties object
tunnel_connection_statustextfield from the properties object
typetextResource type.
use_local_azure_ip_addresstextfield from the properties object
use_policy_based_traffic_selectorstextfield from the properties object
virtualNetworkGatewayConnectionNametextfield from the properties object
virtual_network_gateway1textfield from the properties object
virtual_network_gateway2textfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, virtualNetworkGatewayConnectionNameGets the specified virtual network gateway connection by resource group.
listSELECTresourceGroupName, subscriptionIdThe List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections created.
create_or_updateINSERTresourceGroupName, subscriptionId, virtualNetworkGatewayConnectionName, data__propertiesCreates or updates a virtual network gateway connection in the specified resource group.
deleteDELETEresourceGroupName, subscriptionId, virtualNetworkGatewayConnectionNameDeletes the specified virtual network Gateway connection.
reset_connectionEXECresourceGroupName, subscriptionId, virtualNetworkGatewayConnectionNameResets the virtual network gateway connection specified.
reset_shared_keyEXECresourceGroupName, subscriptionId, virtualNetworkGatewayConnectionName, data__keyLengthThe VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider.
set_shared_keyEXECresourceGroupName, subscriptionId, virtualNetworkGatewayConnectionName, data__valueThe Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider.
start_packet_captureEXECresourceGroupName, subscriptionId, virtualNetworkGatewayConnectionNameStarts packet capture on virtual network gateway connection in the specified resource group.
stop_packet_captureEXECresourceGroupName, subscriptionId, virtualNetworkGatewayConnectionNameStops packet capture on virtual network gateway connection in the specified resource group.
update_tagsEXECresourceGroupName, subscriptionId, virtualNetworkGatewayConnectionNameUpdates a virtual network gateway connection tags.

SELECT examples

The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways connections created.

SELECT
id,
name,
authorization_key,
connection_mode,
connection_protocol,
connection_status,
connection_type,
dpd_timeout_seconds,
egress_bytes_transferred,
egress_nat_rules,
enable_bgp,
enable_private_link_fast_path,
etag,
express_route_gateway_bypass,
gateway_custom_bgp_ip_addresses,
ingress_bytes_transferred,
ingress_nat_rules,
ipsec_policies,
local_network_gateway2,
location,
peer,
provisioning_state,
resourceGroupName,
resource_guid,
routing_weight,
shared_key,
subscriptionId,
tags,
traffic_selector_policies,
tunnel_connection_status,
type,
use_local_azure_ip_address,
use_policy_based_traffic_selectors,
virtualNetworkGatewayConnectionName,
virtual_network_gateway1,
virtual_network_gateway2
FROM azure.network.vw_virtual_network_gateway_connections
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.virtual_network_gateway_connections (
resourceGroupName,
subscriptionId,
virtualNetworkGatewayConnectionName,
data__properties,
properties,
id,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualNetworkGatewayConnectionName }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified virtual_network_gateway_connections resource.

/*+ delete */
DELETE FROM azure.network.virtual_network_gateway_connections
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkGatewayConnectionName = '{{ virtualNetworkGatewayConnectionName }}';