Skip to main content

p2s_vpn_gateways

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

Overview

Namep2s_vpn_gateways
TypeResource
Idazure.network.p2s_vpn_gateways

Fields

The following fields are returned by SELECT queries:

Request successful. Returns the details of the virtual wan p2s vpn gateway retrieved.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the P2SVpnGateway.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, gatewayNameRetrieves the details of a virtual wan p2s vpn gateway.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists all the P2SVpnGateways in a resource group.
listselectsubscriptionIdLists all the P2SVpnGateways in a subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, gatewayName, data__locationCreates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway.
deletedeletesubscriptionId, resourceGroupName, gatewayNameDeletes a virtual wan p2s vpn gateway.
update_tagsexecsubscriptionId, resourceGroupName, gatewayNameUpdates virtual wan p2s vpn gateway tags.
resetexecresourceGroupName, gatewayName, subscriptionIdResets the primary of the p2s vpn gateway in the specified resource group.
generate_vpn_profileexecresourceGroupName, gatewayName, subscriptionIdGenerates VPN profile for P2S client of the P2SVpnGateway in the specified resource group.
disconnect_p2s_vpn_connectionsexecsubscriptionId, resourceGroupName, p2sVpnGatewayNameDisconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group.

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
gatewayNamestringThe name of the P2SVpnGateway.
p2sVpnGatewayNamestringThe name of the P2S Vpn Gateway.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Retrieves the details of a virtual wan p2s vpn gateway.

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

INSERT examples

Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway.

INSERT INTO azure.network.p2s_vpn_gateways (
data__properties,
subscriptionId,
resourceGroupName,
gatewayName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ gatewayName }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

DELETE examples

Deletes a virtual wan p2s vpn gateway.

DELETE FROM azure.network.p2s_vpn_gateways
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND gatewayName = '{{ gatewayName }}' --required
;

Lifecycle Methods

Updates virtual wan p2s vpn gateway tags.

EXEC azure.network.p2s_vpn_gateways.update_tags 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@gatewayName='{{ gatewayName }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;