Partager via


VirtualNetworkGatewayResource.GetVirtualNetworkGatewayNatRule 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 Azure.Response<Azure.ResourceManager.Network.VirtualNetworkGatewayNatRuleResource> GetVirtualNetworkGatewayNatRule (string natRuleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualNetworkGatewayNatRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.VirtualNetworkGatewayNatRuleResource>
override this.GetVirtualNetworkGatewayNatRule : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.VirtualNetworkGatewayNatRuleResource>
Public Overridable Function GetVirtualNetworkGatewayNatRule (natRuleName As String, Optional cancellationToken As CancellationToken = Nothing) As 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 à