Skip to content

Commit

Permalink
virtual wan/gateway disconnect vpn connections (#7747)
Browse files Browse the repository at this point in the history
* virtual wan/gateway disconnect vpn connections

* fix the PR comments

* fix the PR

* upgrade rest-api-specs-scripts version (#7712)

* bump avocado version to support $(this-folder) (#7743)

* regenerate package-lock.json (#7756)

* fix build error

* match class name with p2svpnconnectionrequest in nrp

* address the PR comments

* address the PR comments

* Prettify Network examples

* fix format of json
  • Loading branch information
ninweninwe authored and Zim Kalinowski committed Nov 28, 2019
1 parent 21d9358 commit 653134d
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 0 deletions.
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",
"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",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/P2SVpnConnectionRequest"
},
"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."
}
}
}
}
}

0 comments on commit 653134d

Please sign in to comment.