Skip to content

Commit

Permalink
Support for ResetConnection for VNG and VPN Link connections (#12715)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatkale authored Feb 2, 2021
1 parent ac01baa commit 399d92f
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,7 @@ Reregister
Rescan
reservationorders
resetapikey
resetconnection
resetvpnclientsharedkey
Resolvability
resourcegraph
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"api-version": "2020-08-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"virtualNetworkGatewayConnectionName": "conn1"
},
"responses": {
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2020-08-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"gatewayName": "gateway1",
"connectionName": "vpnConnection1",
"linkConnectionName": "Connection-Link1"
},
"responses": {
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,57 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/resetconnection": {
"post": {
"tags": [
"VirtualNetworkGatewayConnections"
],
"operationId": "VirtualNetworkGatewayConnections_ResetConnection",
"description": "Resets the virtual network gateway connection specified.",
"parameters": [
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "virtualNetworkGatewayConnectionName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the virtual network gateway Connection."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"202": {
"description": "Accepted and the operation will complete asynchronously."
},
"default": {
"description": "The operation resetconnection could not be completed.",
"schema": {
"$ref": "./networkWatcher.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"ResetVirtualNetworkGatewayConnection": {
"$ref": "./examples/VirtualNetworkGatewayConnectionReset.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}": {
"put": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2094,6 +2094,71 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}/resetconnection": {
"post": {
"tags": [
"vpnLinkConnections"
],
"operationId": "VpnLinkConnections_ResetConnection",
"description": "Resets the VpnLink connection specified.",
"parameters": [
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "gatewayName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the gateway."
},
{
"name": "connectionName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the vpn connection."
},
{
"name": "linkConnectionName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the vpn link connection."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"202": {
"description": "Accepted and the operation ResetConnection will complete asynchronously."
},
"default": {
"description": "The operation ResetConnection could not be completed.",
"schema": {
"$ref": "./networkWatcher.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"ResetVpnLinkConnection": {
"$ref": "./examples/VpnSiteLinkConnectionReset.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways": {
"get": {
"operationId": "VpnGateways_ListByResourceGroup",
Expand Down

0 comments on commit 399d92f

Please sign in to comment.