NatRules interface
代表 NatRules 的介面。
方法
begin |
如果 NAT 規則不存在,則會將 nat 規則建立至可調整的 VPN 閘道,否則會更新現有的 nat 規則。 |
begin |
如果 NAT 規則不存在,則會將 nat 規則建立至可調整的 VPN 閘道,否則會更新現有的 nat 規則。 |
begin |
刪除 nat 規則。 |
begin |
刪除 nat 規則。 |
get(string, string, string, Nat |
擷取 nat ruleGet 的詳細數據。 |
list |
擷取特定虛擬 wan vpn 閘道的所有 nat 規則。 |
方法詳細資料
beginCreateOrUpdate(string, string, string, VpnGatewayNatRule, NatRulesCreateOrUpdateOptionalParams)
如果 NAT 規則不存在,則會將 nat 規則建立至可調整的 VPN 閘道,否則會更新現有的 nat 規則。
function beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, natRuleName: string, natRuleParameters: VpnGatewayNatRule, options?: NatRulesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VpnGatewayNatRule>, VpnGatewayNatRule>>
參數
- resourceGroupName
-
string
VpnGateway 的資源組名。
- gatewayName
-
string
閘道名稱。
- natRuleName
-
string
nat 規則的名稱。
- natRuleParameters
- VpnGatewayNatRule
提供用來建立或更新 Nat 規則的參數。
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<VpnGatewayNatRule>, VpnGatewayNatRule>>
beginCreateOrUpdateAndWait(string, string, string, VpnGatewayNatRule, NatRulesCreateOrUpdateOptionalParams)
如果 NAT 規則不存在,則會將 nat 規則建立至可調整的 VPN 閘道,否則會更新現有的 nat 規則。
function beginCreateOrUpdateAndWait(resourceGroupName: string, gatewayName: string, natRuleName: string, natRuleParameters: VpnGatewayNatRule, options?: NatRulesCreateOrUpdateOptionalParams): Promise<VpnGatewayNatRule>
參數
- resourceGroupName
-
string
VpnGateway 的資源組名。
- gatewayName
-
string
閘道名稱。
- natRuleName
-
string
nat 規則的名稱。
- natRuleParameters
- VpnGatewayNatRule
提供用來建立或更新 Nat 規則的參數。
選項參數。
傳回
Promise<VpnGatewayNatRule>
beginDelete(string, string, string, NatRulesDeleteOptionalParams)
刪除 nat 規則。
function beginDelete(resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
參數
- resourceGroupName
-
string
VpnGateway 的資源組名。
- gatewayName
-
string
閘道名稱。
- natRuleName
-
string
nat 規則的名稱。
- options
- NatRulesDeleteOptionalParams
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAndWait(string, string, string, NatRulesDeleteOptionalParams)
刪除 nat 規則。
function beginDeleteAndWait(resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesDeleteOptionalParams): Promise<void>
參數
- resourceGroupName
-
string
VpnGateway 的資源組名。
- gatewayName
-
string
閘道名稱。
- natRuleName
-
string
nat 規則的名稱。
- options
- NatRulesDeleteOptionalParams
選項參數。
傳回
Promise<void>
get(string, string, string, NatRulesGetOptionalParams)
擷取 nat ruleGet 的詳細數據。
function get(resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesGetOptionalParams): Promise<VpnGatewayNatRule>
參數
- resourceGroupName
-
string
VpnGateway 的資源組名。
- gatewayName
-
string
閘道名稱。
- natRuleName
-
string
nat 規則的名稱。
- options
- NatRulesGetOptionalParams
選項參數。
傳回
Promise<VpnGatewayNatRule>
listByVpnGateway(string, string, NatRulesListByVpnGatewayOptionalParams)
擷取特定虛擬 wan vpn 閘道的所有 nat 規則。
function listByVpnGateway(resourceGroupName: string, gatewayName: string, options?: NatRulesListByVpnGatewayOptionalParams): PagedAsyncIterableIterator<VpnGatewayNatRule, VpnGatewayNatRule[], PageSettings>
參數
- resourceGroupName
-
string
VpnGateway 的資源組名。
- gatewayName
-
string
閘道名稱。
選項參數。