Aracılığıyla paylaş


P2SVpnGatewayResource.GenerateVpnProfileAsync Method

Definition

Generates VPN profile for P2S client of the P2SVpnGateway in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile
  • Operation Id: P2sVpnGateways_GenerateVpnProfile
  • Default Api Version: 2024-03-01
  • Resource: P2SVpnGatewayResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.VpnProfileResponse>> GenerateVpnProfileAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.P2SVpnProfileContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateVpnProfileAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.P2SVpnProfileContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.VpnProfileResponse>>
override this.GenerateVpnProfileAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.P2SVpnProfileContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.VpnProfileResponse>>
Public Overridable Function GenerateVpnProfileAsync (waitUntil As WaitUntil, content As P2SVpnProfileContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of VpnProfileResponse))

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.

content
P2SVpnProfileContent

Parameters supplied to the generate P2SVpnGateway VPN client package operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to