Skip to main content

vpn_link_connections

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

Overview

Namevpn_link_connections
TypeResource
Idazure.network.vpn_link_connections

Fields

The following fields are returned by SELECT queries:

Request successful. Returns all Vpn connections for a virtual wan vpn gateway.

NameDatatypeDescription
idstringResource ID.
namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the VPN site link connection.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_vpn_connectionselectsubscriptionId, resourceGroupName, gatewayName, connectionNameRetrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection.
reset_connectionexecsubscriptionId, resourceGroupName, gatewayName, connectionName, linkConnectionNameResets the VpnLink connection specified.
set_or_init_default_shared_keyexecsubscriptionId, resourceGroupName, gatewayName, connectionName, linkConnectionNameSets or auto generates the shared key based on the user input. If users give a shared key value, it does the set operation. If key length is given, the operation creates a random key of the pre-defined length.

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
connectionNamestringThe name of the connection.
gatewayNamestringThe name of the gateway.
linkConnectionNamestringThe name of the vpn link connection.
resourceGroupNamestringThe resource group name of the VpnGateway.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Retrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection.

SELECT
id,
name,
etag,
properties,
type
FROM azure.network.vpn_link_connections
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND gatewayName = '{{ gatewayName }}' -- required
AND connectionName = '{{ connectionName }}' -- required
;

Lifecycle Methods

Resets the VpnLink connection specified.

EXEC azure.network.vpn_link_connections.reset_connection 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@gatewayName='{{ gatewayName }}' --required,
@connectionName='{{ connectionName }}' --required,
@linkConnectionName='{{ linkConnectionName }}' --required
;