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:

NameDatatypeDescription
idstringResource ID.
namestringName of the resource.
provisioningStatestringThe provisioning state of the SharedKey resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
sharedKeystringThe value of the shared key for the vpn link connection.
sharedKeyLengthintegerThe length of the shared key for the vpn link connection.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_default_shared_keyselectresource_group_name, gateway_name, connection_name, link_connection_name, subscription_idGets the value of the shared key of VpnLink connection specified.
list_by_vpn_connectionselectresource_group_name, gateway_name, connection_name, subscription_idRetrieves all vpn site link connections for a particular virtual wan vpn gateway vpn connection.
get_default_shared_keyexecresource_group_name, gateway_name, connection_name, link_connection_name, subscription_idGets the shared key of VpnLink connection specified.
set_or_init_default_shared_keyexecresource_group_name, gateway_name, connection_name, link_connection_name, subscription_idSets 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.
get_all_shared_keysexecresource_group_name, gateway_name, connection_name, link_connection_name, subscription_idLists all shared keys of VpnLink connection specified.
get_ike_sasexecresource_group_name, gateway_name, connection_name, link_connection_name, subscription_idLists IKE Security Associations for Vpn Site Link Connection in the specified resource group.
reset_connectionexecresource_group_name, gateway_name, connection_name, link_connection_name, subscription_idResets the VpnLink connection specified.

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
connection_namestringThe name of the vpn connection. Required.
gateway_namestringThe name of the vpn gateway. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the value of the shared key of VpnLink connection specified.

SELECT
id,
name,
provisioningState,
sharedKey,
sharedKeyLength,
type
FROM azure.network.vpn_link_connections
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND gateway_name = '{{ gateway_name }}' -- required
AND connection_name = '{{ connection_name }}' -- required
AND link_connection_name = '{{ link_connection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Gets the shared key of VpnLink connection specified.

EXEC azure.network.vpn_link_connections.get_default_shared_key 
@resource_group_name='{{ resource_group_name }}' --required,
@gateway_name='{{ gateway_name }}' --required,
@connection_name='{{ connection_name }}' --required,
@link_connection_name='{{ link_connection_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;