你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

P2SVpnGatewayResource.GenerateVpnProfile 方法

定义

为指定资源组中 P2SVpnGateway 的 P2S 客户端生成 VPN 配置文件。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile
  • 操作IdP2sVpnGateways_GenerateVpnProfile
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.VpnProfileResponse> GenerateVpnProfile (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.P2SVpnProfileContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateVpnProfile : Azure.WaitUntil * Azure.ResourceManager.Network.Models.P2SVpnProfileContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.VpnProfileResponse>
override this.GenerateVpnProfile : Azure.WaitUntil * Azure.ResourceManager.Network.Models.P2SVpnProfileContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.VpnProfileResponse>
Public Overridable Function GenerateVpnProfile (waitUntil As WaitUntil, content As P2SVpnProfileContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of VpnProfileResponse)

参数

waitUntil
WaitUntil

Completed 如果方法应在服务上完成长时间运行的操作之前等待返回,则为 ; Started 如果它在启动操作后应返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例

content
P2SVpnProfileContent

提供给生成 P2SVpnGateway VPN 客户端包操作的参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于