VirtualNetworkGatewayResource.DisconnectVirtualNetworkGatewayVpnConnectionsAsync 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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> DisconnectVirtualNetworkGatewayVpnConnectionsAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.P2SVpnConnectionRequest request, System.Threading.CancellationToken cancellationToken = default);
abstract member DisconnectVirtualNetworkGatewayVpnConnectionsAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.P2SVpnConnectionRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.DisconnectVirtualNetworkGatewayVpnConnectionsAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.P2SVpnConnectionRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function DisconnectVirtualNetworkGatewayVpnConnectionsAsync (waitUntil As WaitUntil, request As P2SVpnConnectionRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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