Compartilhar via


P2sVpnGatewaysOperationsExtensions.CreateOrUpdateAsync Método

Definição

Cria um gateway de VPN p2s de wan virtual se ele não existir, atualiza o gateway existente.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.P2SVpnGateway> CreateOrUpdateAsync (this Microsoft.Azure.Management.Network.IP2sVpnGatewaysOperations operations, string resourceGroupName, string gatewayName, Microsoft.Azure.Management.Network.Models.P2SVpnGateway p2SVpnGatewayParameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Network.IP2sVpnGatewaysOperations * string * string * Microsoft.Azure.Management.Network.Models.P2SVpnGateway * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.P2SVpnGateway>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IP2sVpnGatewaysOperations, resourceGroupName As String, gatewayName As String, p2SVpnGatewayParameters As P2SVpnGateway, Optional cancellationToken As CancellationToken = Nothing) As Task(Of P2SVpnGateway)

Parâmetros

operations
IP2sVpnGatewaysOperations

O grupo de operações para esse método de extensão.

resourceGroupName
String

O nome do grupo de recursos do P2SVpnGateway.

gatewayName
String

O nome do gateway.

p2SVpnGatewayParameters
P2SVpnGateway

Parâmetros fornecidos para criar ou atualizar um gateway de vpn p2s de wan virtual.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a