Partager via


VirtualNetworkGatewayResource.GetVirtualNetworkGatewayNatRuleAsync Méthode

Définition

Récupère les détails d’une règle nat.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/natRules/{natRuleName}
  • IdVirtualNetworkGatewayNatRules_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VirtualNetworkGatewayNatRuleResource>> GetVirtualNetworkGatewayNatRuleAsync (string natRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualNetworkGatewayNatRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VirtualNetworkGatewayNatRuleResource>>
override this.GetVirtualNetworkGatewayNatRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VirtualNetworkGatewayNatRuleResource>>
Public Overridable Function GetVirtualNetworkGatewayNatRuleAsync (natRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualNetworkGatewayNatRuleResource))

Paramètres

natRuleName
String

Nom de la règle nat.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

natRuleName est une chaîne vide et devait être non vide.

natRuleName a la valeur null.

S’applique à