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

NameDatatypeDescription
idtextResource ID.
nametextResource name.
custom_dns_serverstextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
gatewayNametextfield from the properties object
is_routing_preference_internettextfield from the properties object
locationtextResource location.
p2_s_connection_configurationstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.
virtual_hubtextfield from the properties object
vpn_client_connection_healthtextfield from the properties object
vpn_gateway_scale_unittextfield from the properties object
vpn_server_configurationtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgatewayName, resourceGroupName, subscriptionIdRetrieves the details of a virtual wan p2s vpn gateway.
listSELECTsubscriptionIdLists all the P2SVpnGateways in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the P2SVpnGateways in a resource group.
create_or_updateINSERTgatewayName, resourceGroupName, subscriptionId, data__locationCreates a virtual wan p2s vpn gateway if it doesn't exist else updates the existing gateway.
deleteDELETEgatewayName, resourceGroupName, subscriptionIdDeletes a virtual wan p2s vpn gateway.
disconnect_p2s_vpn_connectionsEXECp2sVpnGatewayName, resourceGroupName, subscriptionIdDisconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group.
generate_vpn_profileEXECgatewayName, resourceGroupName, subscriptionIdGenerates VPN profile for P2S client of the P2SVpnGateway in the specified resource group.
resetEXECgatewayName, resourceGroupName, subscriptionIdResets the primary of the p2s vpn gateway in the specified resource group.
update_tagsEXECgatewayName, resourceGroupName, subscriptionIdUpdates virtual wan p2s vpn gateway tags.

SELECT examples

Lists all the P2SVpnGateways in a subscription.

SELECT
id,
name,
custom_dns_servers,
etag,
gatewayName,
is_routing_preference_internet,
location,
p2_s_connection_configurations,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
type,
virtual_hub,
vpn_client_connection_health,
vpn_gateway_scale_unit,
vpn_server_configuration
FROM azure.network.vw_p2s_vpn_gateways
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.p2s_vpn_gateways (
gatewayName,
resourceGroupName,
subscriptionId,
data__location,
properties,
id,
location,
tags
)
SELECT
'{{ gatewayName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified p2s_vpn_gateways resource.

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