Azure Networking Services P2S Vpn Gateways API
The P2SVpnGateways API from Azure Networking Services — 6 operation(s) for p2svpngateways.
The P2SVpnGateways API from Azure Networking Services — 6 operation(s) for p2svpngateways.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/azure-networking-services:azure-networking-services-p2svpngateways-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: WebApplicationFirewallManagement P2S Vpn Gateways API
version: '2026-03-01'
description: APIs to manage Microsoft Azure network resources.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: P2SVpnGateways
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}
: patch:
operationId: P2sVpnGateways_UpdateTags
tags:
- P2SVpnGateways
description: Updates virtual wan p2s vpn gateway tags.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: gatewayName
in: path
description: The name of the gateway.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/P2SVpnGateway'
'202':
description: Resource update request accepted.
headers:
Azure-AsyncOperation:
description: A link to the status monitor
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: azure-async-operation
final-state-schema: '#/definitions/P2SVpnGateway'
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TagsObject'
description: Parameters supplied to update a virtual wan p2s vpn gateway tags.
required: true
summary: P2s vpn gateways update tags
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{p2sVpnGatewayName}/disconnectP2sVpnConnections
: post:
operationId: P2sVpnGateways_DisconnectP2sVpnConnections
tags:
- P2SVpnGateways
description: Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: p2sVpnGatewayName
in: path
description: The name of the P2S Vpn Gateway.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
'202':
description: Resource operation accepted.
headers:
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: location
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/P2SVpnConnectionRequest'
description: The parameters are supplied to disconnect p2s vpn connections.
required: true
summary: P2s vpn gateways disconnect p2s vpn connections
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile
: post:
operationId: P2sVpnGateways_GenerateVpnProfile
tags:
- P2SVpnGateways
description: Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: gatewayName
in: path
description: The name of the gateway.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/VpnProfileResponse'
'202':
description: Resource operation accepted.
headers:
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: location
final-state-schema: '#/definitions/VpnProfileResponse'
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/P2SVpnProfileParameters'
description: Parameters supplied to the generate P2SVpnGateway VPN client package operation.
required: true
summary: P2s vpn gateways generate vpn profile
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealth
: post:
operationId: P2sVpnGateways_GetP2sVpnConnectionHealth
tags:
- P2SVpnGateways
description: Gets the connection health of P2S clients of the virtual wan P2SVpnGateway in the specified resource group.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: gatewayName
in: path
description: The name of the gateway.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/P2SVpnGateway'
'202':
description: Resource operation accepted.
headers:
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: location
final-state-schema: '#/definitions/P2SVpnGateway'
x-ms-long-running-operation: true
summary: P2s vpn gateways get p2s vpn connection health
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/getP2sVpnConnectionHealthDetailed
: post:
operationId: P2sVpnGateways_GetP2sVpnConnectionHealthDetailed
tags:
- P2SVpnGateways
description: Gets the sas url to get the connection health detail of P2S clients of the virtual wan P2SVpnGateway in the specified resource group.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: gatewayName
in: path
description: The name of the gateway.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/P2SVpnConnectionHealth'
'202':
description: Resource operation accepted.
headers:
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: location
final-state-schema: '#/definitions/P2SVpnConnectionHealth'
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/P2SVpnConnectionHealthRequest'
description: Request parameters supplied to get p2s vpn connections detailed health.
required: true
summary: P2s vpn gateways get p2s vpn connection health detailed
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/reset
: post:
operationId: P2SVpnGateways_Reset
tags:
- P2SVpnGateways
description: Resets the primary of the p2s vpn gateway in the specified resource group.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: gatewayName
in: path
description: The name of the gateway.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/P2SVpnGateway'
'202':
description: Resource operation accepted.
headers:
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: location
final-state-schema: '#/definitions/P2SVpnGateway'
x-ms-long-running-operation: true
summary: P2S vpn gateways reset
x-summary-source: derived
components:
schemas:
VpnServerConfigurationPolicyGroupProperties:
type: object
description: Parameters for VpnServerConfigurationPolicyGroup.
properties:
isDefault:
type: boolean
description: Shows if this is a Default VpnServerConfigurationPolicyGroup or not.
priority:
type: integer
format: int32
description: Priority for VpnServerConfigurationPolicyGroup.
policyMembers:
type: array
description: Multiple PolicyMembers for VpnServerConfigurationPolicyGroup.
items:
$ref: '#/components/schemas/VpnServerConfigurationPolicyGroupMember'
x-ms-identifiers: []
p2SConnectionConfigurations:
type: array
description: List of references to P2SConnectionConfigurations.
items:
$ref: '#/components/schemas/SubResource'
readOnly: true
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the VpnServerConfigurationPolicyGroup resource.
readOnly: true
TrackedResourceWithSettableIdOptionalLocation:
type: object
description: Common resource representation.
properties:
id:
type: string
description: Resource ID.
name:
type: string
description: Resource name.
readOnly: true
type:
type: string
description: Resource type.
readOnly: true
location:
type: string
description: Resource location.
tags:
type: object
description: Resource tags.
additionalProperties:
type: string
x-ms-azure-resource: true
VpnServerConfigurationPolicyGroup:
type: object
description: VpnServerConfigurationPolicyGroup Resource.
properties:
properties:
$ref: '#/components/schemas/VpnServerConfigurationPolicyGroupProperties'
description: Properties of the VpnServerConfigurationPolicyGroup.
x-ms-client-flatten: true
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
allOf:
- $ref: '#/components/schemas/SubResourceModel'
SubResource:
type: object
description: Reference to another subresource.
properties:
id:
type: string
description: Resource ID.
CloudError:
type: object
description: An error response from the service.
properties:
error:
$ref: '#/components/schemas/CloudErrorBody'
description: Cloud error body.
x-ms-external: true
VpnClientConnectionHealth:
type: object
description: VpnClientConnectionHealth properties.
properties:
totalIngressBytesTransferred:
type: integer
format: int64
description: Total of the Ingress Bytes Transferred in this P2S Vpn connection.
readOnly: true
totalEgressBytesTransferred:
type: integer
format: int64
description: Total of the Egress Bytes Transferred in this connection.
readOnly: true
vpnClientConnectionsCount:
type: integer
format: int32
description: The total of p2s vpn clients connected at this time to this P2SVpnGateway.
allocatedIpAddresses:
type: array
description: List of allocated ip addresses to the connected p2s vpn clients.
items:
type: string
AddressSpace:
type: object
description: AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network.
properties:
addressPrefixes:
type: array
description: A list of address blocks reserved for this virtual network in CIDR notation.
items:
type: string
ipamPoolPrefixAllocations:
type: array
description: A list of IPAM Pools allocating IP address prefixes.
items:
$ref: '#/components/schemas/IpamPoolPrefixAllocation'
AuthenticationMethod:
type: string
description: VPN client authentication method.
enum:
- EAPTLS
- EAPMSCHAPv2
x-ms-enum:
name: AuthenticationMethod
modelAsString: true
values:
- name: EAPTLS
value: EAPTLS
description: EAPTLS
- name: EAPMSCHAPv2
value: EAPMSCHAPv2
description: EAPMSCHAPv2
VnetRoute:
type: object
description: List of routes that control routing from VirtualHub into a virtual network connection.
properties:
staticRoutesConfig:
$ref: '#/components/schemas/StaticRoutesConfig'
description: Configuration for static routes on this HubVnetConnection.
staticRoutes:
type: array
description: List of all Static Routes.
items:
$ref: '#/components/schemas/StaticRoute'
bgpConnections:
type: array
description: The list of references to HubBgpConnection objects.
items:
$ref: '#/components/schemas/SubResource'
readOnly: true
VpnProfileResponse:
type: object
description: Vpn Profile Response for package generation.
properties:
profileUrl:
type: string
description: URL to the VPN profile.
VpnServerConfigurationPolicyGroupMember:
type: object
description: VpnServerConfiguration PolicyGroup member
properties:
name:
type: string
description: Name of the VpnServerConfigurationPolicyGroupMember.
attributeType:
$ref: '#/components/schemas/VpnPolicyMemberAttributeType'
description: The Vpn Policy member attribute type.
attributeValue:
type: string
description: The value of Attribute used for this VpnServerConfigurationPolicyGroupMember.
ProvisioningState:
type: string
description: Provisioning states of a resource.
enum:
- Failed
- Succeeded
- Canceled
- Creating
- Updating
- Deleting
x-ms-enum:
name: ProvisioningState
modelAsString: true
values:
- name: Failed
value: Failed
description: Failed
- name: Succeeded
value: Succeeded
description: Succeeded
- name: Canceled
value: Canceled
description: Canceled
- name: Creating
value: Creating
description: Creating
- name: Updating
value: Updating
description: Updating
- name: Deleting
value: Deleting
description: Deleting
P2SVpnConnectionRequest:
type: object
description: List of p2s vpn connections to be disconnected.
properties:
vpnConnectionIds:
type: array
description: List of p2s vpn connection Ids.
items:
type: string
StaticRoute:
type: object
description: List of all Static Routes.
properties:
name:
type: string
description: The name of the StaticRoute that is unique within a VnetRoute.
addressPrefixes:
type: array
description: List of all address prefixes.
items:
type: string
nextHopIpAddress:
type: string
description: The ip address of the next hop.
SubResourceModel:
type: object
description: Reference to another subresource.
properties:
name:
type: string
description: Name of the resource.
type:
type: string
description: Resource type.
readOnly: true
allOf:
- $ref: '#/components/schemas/SubResource'
x-ms-azure-resource: true
RoutingConfiguration:
type: object
description: Routing Configuration indicating the associated and propagated route tables for this connection.
properties:
associatedRouteTable:
$ref: '#/components/schemas/SubResource'
description: The resource id RouteTable associated with this RoutingConfiguration.
propagatedRouteTables:
$ref: '#/components/schemas/PropagatedRouteTable'
description: The list of RouteTables to advertise the routes to.
vnetRoutes:
$ref: '#/components/schemas/VnetRoute'
description: List of routes that control routing from VirtualHub into a virtual network connection.
inboundRouteMap:
$ref: '#/components/schemas/SubResource'
description: The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
outboundRouteMap:
$ref: '#/components/schemas/SubResource'
description: The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
StaticRoutesConfig:
type: object
description: Configuration for static routes on this HubVnetConnectionConfiguration for static routes on this HubVnetConnection.
properties:
propagateStaticRoutes:
type: boolean
description: Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
vnetLocalRouteOverrideCriteria:
$ref: '#/components/schemas/VnetLocalRouteOverrideCriteria'
description: Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
P2SVpnGateway:
type: object
description: P2SVpnGateway Resource.
properties:
properties:
$ref: '#/components/schemas/P2SVpnGatewayProperties'
description: Properties of the P2SVpnGateway.
x-ms-client-flatten: true
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
allOf:
- $ref: '#/components/schemas/TrackedResourceWithSettableIdOptionalLocation'
P2SVpnConnectionHealthRequest:
type: object
description: List of P2S Vpn connection health request.
properties:
vpnUserNamesFilter:
type: array
description: The list of p2s vpn user names whose p2s vpn connection detailed health to retrieve for.
items:
type: string
outputBlobSasUrl:
type: string
description: The sas-url to download the P2S Vpn connection health detail.
TagsObject:
type: object
description: Tags object for patch operations.
properties:
tags:
type: object
description: Resource tags.
additionalProperties:
type: string
P2SConnectionConfigurationProperties:
type: object
description: Parameters for P2SConnectionConfiguration.
properties:
vpnClientAddressPool:
$ref: '#/components/schemas/AddressSpace'
description: The reference to the address space resource which represents Address space for P2S VpnClient.
routingConfiguration:
$ref: '#/components/schemas/RoutingConfiguration'
description: The Routing Configuration indicating the associated and propagated route tables on this connection.
enableInternetSecurity:
type: boolean
description: Flag indicating whether the enable internet security flag is turned on for the P2S Connections or not.
configurationPolicyGroupAssociations:
type: array
description: List of Configuration Policy Groups that this P2SConnectionConfiguration is attached to.
items:
$ref: '#/components/schemas/SubResource'
previousConfigurationPolicyGroupAssociations:
type: array
description: List of previous Configuration Policy Groups that this P2SConnectionConfiguration was attached to.
items:
$ref: '#/components/schemas/VpnServerConfigurationPolicyGroup'
readOnly: true
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the P2SConnectionConfiguration resource.
readOnly: true
P2SVpnConnectionHealth:
type: object
description: P2S Vpn connection detailed health written to sas url.
properties:
sasUrl:
type: string
description: Returned sas url of the blob to which the p2s vpn connection detailed health will be written.
VpnPolicyMemberAttributeType:
type: string
description: The Vpn Policy member attribute type.
enum:
- CertificateGroupId
- AADGroupId
- RadiusAzureGroupId
x-ms-enum:
name: VpnPolicyMemberAttributeType
modelAsString: true
values:
- name: CertificateGroupId
value: CertificateGroupId
description: CertificateGroupId
- name: AADGroupId
value: AADGroupId
description: AADGroupId
- name: RadiusAzureGroupId
value: RadiusAzureGroupId
description: RadiusAzureGroupId
PropagatedRouteTable:
type: object
description: The list of RouteTables to advertise the routes to.
properties:
labels:
type: array
description: The list of labels.
items:
type: string
ids:
type: array
description: The list of resource ids of all the RouteTables.
items:
$ref: '#/components/schemas/SubResource'
P2SVpnGatewayProperties:
type: object
description: Parameters for P2SVpnGateway.
properties:
virtualHub:
$ref: '#/components/schemas/SubResource'
description: The VirtualHub to which the gateway belongs.
p2SConnectionConfigurations:
type: array
description: List of all p2s connection configurations of the gateway.
items:
$ref: '#/components/schemas/P2SConnectionConfiguration'
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the P2S VPN gateway resource.
readOnly: true
vpnGatewayScaleUnit:
type: integer
format: int32
description: The scale unit for this p2s vpn gateway.
vpnServerConfiguration:
$ref: '#/components/schemas/SubResource'
description: The VpnServerConfiguration to which the p2sVpnGateway is attached to.
vpnClientConnectionHealth:
$ref: '#/components/schemas/VpnClientConnectionHealth'
description: All P2S VPN clients' connection health status.
readOnly: true
customDnsServers:
type: array
description: List of all customer specified DNS servers IP addresses.
items:
type: string
isRoutingPreferenceInternet:
type: boolean
description: Enable Routing Preference property for the Public IP Interface of the P2SVpnGateway.
P2SConnectionConfiguration:
type: object
description: P2SConnectionConfiguration Resource.
properties:
properties:
$ref: '#/components/schemas/P2SConnectionConfigurationProperties'
description: Properties of the P2S connection configuration.
x-ms-client-flatten: true
name:
type: string
description: The name of the resource that is unique within a resource group. This name can be used to access the resource.
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
allOf:
- $ref: '#/components/schemas/SubResource'
VnetLocalRouteOverrideCriteria:
type: string
description: Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke vnet.
enum:
- Contains
- Equal
x-ms-enum:
name: VnetLocalRouteOverrideCriteria
modelAsString: true
values:
- name: Contains
value: Contains
description: Contains
- name: Equal
value: Equal
description: Equal
P2SVpnProfileParameters:
type: object
description: Vpn Client Parameters for package generation.
properties:
authenticationMethod:
$ref: '#/components/schemas/AuthenticationMethod'
description: VPN client authentication method.
parameters:
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription. The value must be an UUID.
required: true
schema:
type: string
format: uuid
ResourceGroupNameParameter:
name: resourceGroupName
in: path
description: The name of the resource group. The name is case insensitive.
required: true
x-ms-parameter-location: method
schema:
type: string
maxLength: 90
minLength: 1
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow.