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

virtual wan/gateway disconnect vpn connections #7747

Merged
merged 14 commits into from
Nov 28, 2019
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "p2s-vpn-gateway-test",
"p2sVpnGatewayName": "p2svpngateway",
"api-version": "2019-11-01",
"request": {
"vpnConnectionIds": [
"vpnconnId1",
"vpnconnId2"
]
}
},
"responses": {
"200": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "vpn-gateway-test",
"virtualNetworkGatewayName": "vpngateway",
"api-version": "2019-11-01",
"request": {
"vpnConnectionIds": [
"vpnconnId1",
"vpnconnId2"
]
}
},
"responses": {
"200": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,69 @@
"final-state-via": "location"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/disconnectVirtualNetworkGatewayVpnConnections": {
"post": {
"tags": [
"VirtualNetworkGateways"
],
"operationId": "VirtualNetworkGateways_DisconnectVirtualNetworkGatewayVpnConnections",
"description": "Disconnect vpn connections of virtual network gateway in the specified resource group.",
"parameters": [
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "virtualNetworkGatewayName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the virtual network gateway."
},
{
"name": "request",
ninweninwe marked this conversation as resolved.
Show resolved Hide resolved
"in": "body",
"required": true,
"schema": {
"$ref": "./virtualWan.json#/definitions/P2SVpnConnectionRequest"
},
"description": "The parameters are supplied to disconnect vpn connections."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation disconnects the requested vpn connections."
},
"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": {
"Disconnect VpnConnections from Virtual Network Gateway": {
"$ref": "./examples/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
}
},
"definitions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3091,6 +3091,69 @@
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{p2sVpnGatewayName}/disconnectP2sVpnConnections": {
"post": {
"tags": [
"P2SVpnGateways"
],
"operationId": "P2sVpnGateways_DisconnectP2sVpnConnections",
"description": "Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group.",
"parameters": [
{
"$ref": "./network.json#/parameters/SubscriptionIdParameter"
},
{
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group."
},
{
"name": "p2sVpnGatewayName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the P2S Vpn Gateway."
},
{
"name": "request",
ninweninwe marked this conversation as resolved.
Show resolved Hide resolved
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/P2SVpnConnectionRequest"
ninweninwe marked this conversation as resolved.
Show resolved Hide resolved
},
"description": "The parameters are supplied to disconnect p2s vpn connections."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Request successful. The operation disconnects the requested vpn connections."
},
"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": {
"Disconnect VpnConnections from P2sVpn Gateway": {
"$ref": "./examples/P2sVpnGatewaysDisconnectP2sVpnConnections.json"
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -4524,6 +4587,18 @@
"description": "URL to get the next set of operation list results if there are any."
}
}
},
"P2SVpnConnectionRequest": {
"description": "List of p2s vpn connections to be disconnected.",
"properties": {
"vpnConnectionIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of p2s vpn connection Ids."
}
}
}
}
}