共用方式為


NatRules interface

代表 NatRules 的介面。

方法

beginCreateOrUpdate(string, string, string, VpnGatewayNatRule, NatRulesCreateOrUpdateOptionalParams)

如果 NAT 規則不存在,則會將 nat 規則建立至可調整的 VPN 閘道,否則會更新現有的 nat 規則。

beginCreateOrUpdateAndWait(string, string, string, VpnGatewayNatRule, NatRulesCreateOrUpdateOptionalParams)

如果 NAT 規則不存在,則會將 nat 規則建立至可調整的 VPN 閘道,否則會更新現有的 nat 規則。

beginDelete(string, string, string, NatRulesDeleteOptionalParams)

刪除 nat 規則。

beginDeleteAndWait(string, string, string, NatRulesDeleteOptionalParams)

刪除 nat 規則。

get(string, string, string, NatRulesGetOptionalParams)

擷取 nat ruleGet 的詳細數據。

listByVpnGateway(string, string, NatRulesListByVpnGatewayOptionalParams)

擷取特定虛擬 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 規則的參數。

options
NatRulesCreateOrUpdateOptionalParams

選項參數。

傳回

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 規則的參數。

options
NatRulesCreateOrUpdateOptionalParams

選項參數。

傳回

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

選項參數。

傳回

listByVpnGateway(string, string, NatRulesListByVpnGatewayOptionalParams)

擷取特定虛擬 wan vpn 閘道的所有 nat 規則。

function listByVpnGateway(resourceGroupName: string, gatewayName: string, options?: NatRulesListByVpnGatewayOptionalParams): PagedAsyncIterableIterator<VpnGatewayNatRule, VpnGatewayNatRule[], PageSettings>

參數

resourceGroupName

string

VpnGateway 的資源組名。

gatewayName

string

閘道名稱。

options
NatRulesListByVpnGatewayOptionalParams

選項參數。

傳回