次の方法で共有


LoadBalancerResource.GetInboundNatRuleAsync メソッド

定義

指定したロード バランサーの受信 NAT 規則を取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}
  • 操作IdInboundNatRules_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.InboundNatRuleResource>> GetInboundNatRuleAsync (string inboundNatRuleName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetInboundNatRuleAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.InboundNatRuleResource>>
override this.GetInboundNatRuleAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.InboundNatRuleResource>>
Public Overridable Function GetInboundNatRuleAsync (inboundNatRuleName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of InboundNatRuleResource))

パラメーター

inboundNatRuleName
String

受信 NAT 規則の名前。

expand
String

参照先のリソースを展開します。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

inboundNatRuleName は空の文字列であり、空でないと予想されていました。

inboundNatRuleName が null です。

適用対象