Skip to content

Commit 399d92f

Browse files
authored
Support for ResetConnection for VNG and VPN Link connections (#12715)
1 parent ac01baa commit 399d92f

File tree

5 files changed

+141
-0
lines changed

5 files changed

+141
-0
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,6 +1449,7 @@ Reregister
14491449
Rescan
14501450
reservationorders
14511451
resetapikey
1452+
resetconnection
14521453
resetvpnclientsharedkey
14531454
Resolvability
14541455
resourcegraph
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-08-01",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "rg1",
6+
"virtualNetworkGatewayConnectionName": "conn1"
7+
},
8+
"responses": {
9+
"202": {}
10+
}
11+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-08-01",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "rg1",
6+
"gatewayName": "gateway1",
7+
"connectionName": "vpnConnection1",
8+
"linkConnectionName": "Connection-Link1"
9+
},
10+
"responses": {
11+
"202": {}
12+
}
13+
}

specification/network/resource-manager/Microsoft.Network/stable/2020-11-01/virtualNetworkGateway.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,6 +1882,57 @@
18821882
}
18831883
}
18841884
},
1885+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/resetconnection": {
1886+
"post": {
1887+
"tags": [
1888+
"VirtualNetworkGatewayConnections"
1889+
],
1890+
"operationId": "VirtualNetworkGatewayConnections_ResetConnection",
1891+
"description": "Resets the virtual network gateway connection specified.",
1892+
"parameters": [
1893+
{
1894+
"name": "resourceGroupName",
1895+
"in": "path",
1896+
"required": true,
1897+
"type": "string",
1898+
"description": "The name of the resource group."
1899+
},
1900+
{
1901+
"name": "virtualNetworkGatewayConnectionName",
1902+
"in": "path",
1903+
"required": true,
1904+
"type": "string",
1905+
"description": "The name of the virtual network gateway Connection."
1906+
},
1907+
{
1908+
"$ref": "./network.json#/parameters/ApiVersionParameter"
1909+
},
1910+
{
1911+
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
1912+
}
1913+
],
1914+
"responses": {
1915+
"202": {
1916+
"description": "Accepted and the operation will complete asynchronously."
1917+
},
1918+
"default": {
1919+
"description": "The operation resetconnection could not be completed.",
1920+
"schema": {
1921+
"$ref": "./networkWatcher.json#/definitions/ErrorResponse"
1922+
}
1923+
}
1924+
},
1925+
"x-ms-examples": {
1926+
"ResetVirtualNetworkGatewayConnection": {
1927+
"$ref": "./examples/VirtualNetworkGatewayConnectionReset.json"
1928+
}
1929+
},
1930+
"x-ms-long-running-operation": true,
1931+
"x-ms-long-running-operation-options": {
1932+
"final-state-via": "location"
1933+
}
1934+
}
1935+
},
18851936
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}": {
18861937
"put": {
18871938
"tags": [

specification/network/resource-manager/Microsoft.Network/stable/2020-11-01/virtualWan.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,6 +2094,71 @@
20942094
}
20952095
}
20962096
},
2097+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/resetconnection": {
2098+
"post": {
2099+
"tags": [
2100+
"vpnLinkConnections"
2101+
],
2102+
"operationId": "VpnLinkConnections_ResetConnection",
2103+
"description": "Resets the VpnLink connection specified.",
2104+
"parameters": [
2105+
{
2106+
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
2107+
},
2108+
{
2109+
"name": "resourceGroupName",
2110+
"in": "path",
2111+
"required": true,
2112+
"type": "string",
2113+
"description": "The name of the resource group."
2114+
},
2115+
{
2116+
"name": "gatewayName",
2117+
"in": "path",
2118+
"required": true,
2119+
"type": "string",
2120+
"description": "The name of the gateway."
2121+
},
2122+
{
2123+
"name": "connectionName",
2124+
"in": "path",
2125+
"required": true,
2126+
"type": "string",
2127+
"description": "The name of the vpn connection."
2128+
},
2129+
{
2130+
"name": "linkConnectionName",
2131+
"in": "path",
2132+
"required": true,
2133+
"type": "string",
2134+
"description": "The name of the vpn link connection."
2135+
},
2136+
{
2137+
"$ref": "./network.json#/parameters/ApiVersionParameter"
2138+
}
2139+
],
2140+
"responses": {
2141+
"202": {
2142+
"description": "Accepted and the operation ResetConnection will complete asynchronously."
2143+
},
2144+
"default": {
2145+
"description": "The operation ResetConnection could not be completed.",
2146+
"schema": {
2147+
"$ref": "./networkWatcher.json#/definitions/ErrorResponse"
2148+
}
2149+
}
2150+
},
2151+
"x-ms-examples": {
2152+
"ResetVpnLinkConnection": {
2153+
"$ref": "./examples/VpnSiteLinkConnectionReset.json"
2154+
}
2155+
},
2156+
"x-ms-long-running-operation": true,
2157+
"x-ms-long-running-operation-options": {
2158+
"final-state-via": "location"
2159+
}
2160+
}
2161+
},
20972162
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways": {
20982163
"get": {
20992164
"operationId": "VpnGateways_ListByResourceGroup",

0 commit comments

Comments
 (0)