共用方式為


P2SVpnGatewayResource.DisconnectP2SVpnConnectionsAsync Method

Definition

Disconnect P2S vpn connections of the virtual wan P2SVpnGateway in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{p2sVpnGatewayName}/disconnectP2sVpnConnections
  • Operation Id: P2sVpnGateways_DisconnectP2SVpnConnections
  • Default Api Version: 2024-03-01
  • Resource: P2SVpnGatewayResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> DisconnectP2SVpnConnectionsAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.P2SVpnConnectionRequest request, System.Threading.CancellationToken cancellationToken = default);
abstract member DisconnectP2SVpnConnectionsAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.P2SVpnConnectionRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.DisconnectP2SVpnConnectionsAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.P2SVpnConnectionRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function DisconnectP2SVpnConnectionsAsync (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 p2s vpn connections.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

request is null.

Applies to