Partager via


P2sVpnGatewaysOperationsExtensions.CreateOrUpdateAsync Méthode

Définition

Crée une passerelle vpn p2s de wan virtuel si elle n’existe pas, sinon met à jour la passerelle existante.

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

Paramètres

operations
IP2sVpnGatewaysOperations

Groupe d’opérations pour cette méthode d’extension.

resourceGroupName
String

Nom du groupe de ressources du P2SVpnGateway.

gatewayName
String

Le nom de la passerelle.

p2SVpnGatewayParameters
P2SVpnGatewayInner

Paramètres fournis pour créer ou mettre à jour une passerelle VPN p2s de wan virtuel.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

S’applique à