Freigeben über


InboundNatRuleCollection.GetIfExists Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

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

Parameter

inboundNatRuleName
String

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

expand
String

Erweitert Ressourcen, auf die verwiesen wird.

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: