次の方法で共有


NatRulesOperationsExtensions.CreateOrUpdateAsync メソッド

定義

存在しない場合は、スケーラブルな VPN ゲートウェイに nat 規則を作成し、それ以外の場合は既存の nat 規則を更新します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.VpnGatewayNatRule> CreateOrUpdateAsync (this Microsoft.Azure.Management.Network.INatRulesOperations operations, string resourceGroupName, string gatewayName, string natRuleName, Microsoft.Azure.Management.Network.Models.VpnGatewayNatRule natRuleParameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Network.INatRulesOperations * string * string * string * Microsoft.Azure.Management.Network.Models.VpnGatewayNatRule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.VpnGatewayNatRule>
<Extension()>
Public Function CreateOrUpdateAsync (operations As INatRulesOperations, resourceGroupName As String, gatewayName As String, natRuleName As String, natRuleParameters As VpnGatewayNatRule, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VpnGatewayNatRule)

パラメーター

operations
INatRulesOperations

この拡張メソッドの操作グループ。

resourceGroupName
String

VpnGateway のリソース グループ名。

gatewayName
String

ゲートウェイの名前。

natRuleName
String

nat 規則の名前。

natRuleParameters
VpnGatewayNatRule

Nat 規則を作成または更新するために指定されたパラメーター。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象