NatRules interface
表示 NatRules 的接口。
方法
| begin |
如果不存在 nat 规则,则为可缩放的 VPN 网关创建 nat 规则,否则会更新现有的 nat 规则。 |
| begin |
如果不存在 nat 规则,则为可缩放的 VPN 网关创建 nat 规则,否则会更新现有的 nat 规则。 |
| begin |
删除 nat 规则。 |
| begin |
删除 nat 规则。 |
| get(string, string, string, Nat |
检索 nat ruleGet 的详细信息。 |
| list |
检索特定虚拟 wan vpn 网关的所有 nat 规则。 |
方法详细信息
beginCreateOrUpdate(string, string, string, VpnGatewayNatRule, NatRulesCreateOrUpdateOptionalParams)
如果不存在 nat 规则,则为可缩放的 VPN 网关创建 nat 规则,否则会更新现有的 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 规则,则为可缩放的 VPN 网关创建 nat 规则,否则会更新现有的 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
网关的名称。
选项参数。