Partager via


VpnGatewayNatRuleResource.UpdateAsync Méthode

Définition

Crée une règle nat sur une passerelle VPN évolutive si elle n’existe pas, sinon met à jour les règles nat existantes.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/natRules/{natRuleName}
  • IdNatRules_CreateOrUpdate d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.VpnGatewayNatRuleResource>> UpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.VpnGatewayNatRuleData data, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Network.VpnGatewayNatRuleData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.VpnGatewayNatRuleResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Network.VpnGatewayNatRuleData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.VpnGatewayNatRuleResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, data As VpnGatewayNatRuleData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of VpnGatewayNatRuleResource))

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre la fin de l’opération de longue durée sur le service ; Started s’il doit retourner après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations Azure.Core Long-Running.

data
VpnGatewayNatRuleData

Paramètres fournis pour créer ou mettre à jour une règle Nat.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

data a la valeur null.

S’applique à