VirtualNetworkGatewayResource.DisconnectVirtualNetworkGatewayVpnConnections Method

Definition

Disconnect vpn connections of virtual network gateway in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/disconnectVirtualNetworkGatewayVpnConnections
  • Operation Id: VirtualNetworkGateways_DisconnectVirtualNetworkGatewayVpnConnections
  • Default Api Version: 2024-03-01
  • Resource: VirtualNetworkGatewayResource
public virtual Azure.ResourceManager.ArmOperation DisconnectVirtualNetworkGatewayVpnConnections (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.P2SVpnConnectionRequest request, System.Threading.CancellationToken cancellationToken = default);
abstract member DisconnectVirtualNetworkGatewayVpnConnections : Azure.WaitUntil * Azure.ResourceManager.Network.Models.P2SVpnConnectionRequest * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.DisconnectVirtualNetworkGatewayVpnConnections : Azure.WaitUntil * Azure.ResourceManager.Network.Models.P2SVpnConnectionRequest * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function DisconnectVirtualNetworkGatewayVpnConnections (waitUntil As WaitUntil, request As P2SVpnConnectionRequest, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

request
P2SVpnConnectionRequest

The parameters are supplied to disconnect vpn connections.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

request is null.

Applies to