Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new optional param enableInternetSecurity and new Reset API for P2SVpnGateway resource #9952

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"addressPrefixes": [
"101.3.0.0/16"
]
}
},
"enableInternetSecurity": false
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"addressPrefixes": [
"101.3.0.0/16"
]
}
},
"enableInternetSecurity": false
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"addressPrefixes": [
"101.3.0.0/16"
]
}
},
"enableInternetSecurity": true
}
}
],
Expand Down Expand Up @@ -77,7 +78,8 @@
"addressPrefixes": [
"101.4.0.0/16"
]
}
},
"enableInternetSecurity": true
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"addressPrefixes": [
"101.3.0.0/16"
]
}
},
"enableInternetSecurity": false
}
}
],
Expand Down Expand Up @@ -73,7 +74,8 @@
"addressPrefixes": [
"101.3.0.0/16"
]
}
},
"enableInternetSecurity": false
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"addressPrefixes": [
"101.3.0.0/16"
]
}
},
"enableInternetSecurity": false
}
}
],
Expand Down Expand Up @@ -108,7 +109,8 @@
"addressPrefixes": [
"101.3.0.0/16"
]
}
},
"enableInternetSecurity": false
}
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"parameters": {
"gatewayName": "p2sVpnGateway1",
"resourceGroupName": "rg1",
"api-version": "2020-06-01",
"subscriptionId": "subid"
},
"responses": {
"202": {},
"200": {
"body": {
"name": "p2sVpnGateway1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/P2SvpnGateways/p2sVpnGateway1",
"etag": "w/\\00000000-0000-0000-0000-000000000000\\",
"location": "West US",
"type": "Microsoft.Network/p2sVpnGateways",
"properties": {
"provisioningState": "Succeeded",
"virtualHub": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1"
},
"vpnServerConfiguration": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1"
},
"p2SConnectionConfigurations": [
{
"name": "P2SConnectionConfig1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/p2sVpnGateways/p2sVpnGateway1/p2sConnectionConfigurations/P2SConnectionConfig1",
"etag": "w/\\00000000-0000-0000-0000-000000000000\\",
"properties": {
"provisioningState": "Succeeded",
"vpnClientAddressPool": {
"addressPrefixes": [
"101.3.0.0/16"
]
},
"enableInternetSecurity": false
}
}
],
"vpnGatewayScaleUnit": 1,
"customDnsServers": [
"3.3.3.3"
],
"vpnClientConnectionHealth": {
"vpnClientConnectionsCount": 2,
"allocatedIpAddresses": [
"1.1.1.1",
"2.2.2.2"
],
"totalIngressBytesTransferred": 2000,
"totalEgressBytesTransferred": 3000
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"addressPrefixes": [
"101.3.0.0/16"
]
}
},
"enableInternetSecurity": false
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2696,6 +2696,63 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/reset": {
"post": {
"tags": [
"P2SVpnGateways"
],
"operationId": "P2SVpnGateways_Reset",
"description": "Resets the primary of the p2s vpn gateway in the specified resource group.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The resource group name of the P2SVpnGateway."
},
{
"name": "gatewayName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the gateway."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation reset the primary of the P2SVpnGateway.",
"schema": {
"$ref": "#/definitions/P2SVpnGateway"
}
},
"202": {
"description": "Accepted and the operation will complete asynchronously."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"ResetP2SVpnGateway": {
"$ref": "./examples/P2SVpnGatewayReset.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile": {
"post": {
"tags": [
Expand Down Expand Up @@ -6221,6 +6278,10 @@
"$ref": "#/definitions/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."
},
"provisioningState": {
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
Expand Down