Freigeben über


InboundNatRuleCollection.GetIfExistsAsync Methode

Definition

Versucht, Details für diese Ressource vom Dienst abzurufen.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
  • Vorgangs-IdInboundNatRules_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.InboundNatRuleResource>> GetIfExistsAsync (string inboundNatRuleName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.InboundNatRuleResource>>
override this.GetIfExistsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.Network.InboundNatRuleResource>>
Public Overridable Function GetIfExistsAsync (inboundNatRuleName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of InboundNatRuleResource))

Parameter

inboundNatRuleName
String

Der Name der NAT-Regel für eingehenden Datenverkehr.

expand
String

Erweitert die referenzierten Ressourcen.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

inboundNatRuleName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

inboundNatRuleName ist NULL.

Gilt für: