Share via


VirtualNetworkGatewayResource.SetVpnclientIPsecParametersAsync Method

Definition

The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider.

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

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.

vpnclientIPsecParams
VpnClientIPsecParameters

Parameters supplied to the Begin Set vpnclient ipsec parameters of Virtual Network Gateway P2S client operation through Network resource provider.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

vpnclientIPsecParams is null.

Applies to