你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NatRulesOperations interface

表示 NatRules 操作的接口。

属性

beginCreateOrUpdate
beginCreateOrUpdateAndWait
beginDelete
beginDeleteAndWait
createOrUpdate

为可缩放的 VPN 网关创建 nat 规则(如果不存在),否则更新现有 nat 规则。

delete

删除 nat 规则。

get

检索 nat ruleGet 的详细信息。

listByVpnGateway

检索特定虚拟 WAN VPN 网关的所有 nat 规则。

属性详细信息

beginCreateOrUpdate

警告

现已弃用此 API。

use createOrUpdate instead

beginCreateOrUpdate: (resourceGroupName: string, gatewayName: string, natRuleName: string, natRuleParameters: VpnGatewayNatRule, options?: NatRulesCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<VpnGatewayNatRule>, VpnGatewayNatRule>>

属性值

(resourceGroupName: string, gatewayName: string, natRuleName: string, natRuleParameters: VpnGatewayNatRule, options?: NatRulesCreateOrUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<VpnGatewayNatRule>, VpnGatewayNatRule>>

beginCreateOrUpdateAndWait

警告

现已弃用此 API。

use createOrUpdate instead

beginCreateOrUpdateAndWait: (resourceGroupName: string, gatewayName: string, natRuleName: string, natRuleParameters: VpnGatewayNatRule, options?: NatRulesCreateOrUpdateOptionalParams) => Promise<VpnGatewayNatRule>

属性值

(resourceGroupName: string, gatewayName: string, natRuleName: string, natRuleParameters: VpnGatewayNatRule, options?: NatRulesCreateOrUpdateOptionalParams) => Promise<VpnGatewayNatRule>

beginDelete

警告

现已弃用此 API。

use delete instead

beginDelete: (resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

属性值

(resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesDeleteOptionalParams) => Promise<SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait

警告

现已弃用此 API。

use delete instead

beginDeleteAndWait: (resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesDeleteOptionalParams) => Promise<void>

属性值

(resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesDeleteOptionalParams) => Promise<void>

createOrUpdate

为可缩放的 VPN 网关创建 nat 规则(如果不存在),否则更新现有 nat 规则。

createOrUpdate: (resourceGroupName: string, gatewayName: string, natRuleName: string, natRuleParameters: VpnGatewayNatRule, options?: NatRulesCreateOrUpdateOptionalParams) => PollerLike<OperationState<VpnGatewayNatRule>, VpnGatewayNatRule>

属性值

(resourceGroupName: string, gatewayName: string, natRuleName: string, natRuleParameters: VpnGatewayNatRule, options?: NatRulesCreateOrUpdateOptionalParams) => PollerLike<OperationState<VpnGatewayNatRule>, VpnGatewayNatRule>

delete

删除 nat 规则。

delete: (resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesDeleteOptionalParams) => PollerLike<OperationState<void>, void>

属性值

(resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesDeleteOptionalParams) => PollerLike<OperationState<void>, void>

get

检索 nat ruleGet 的详细信息。

get: (resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesGetOptionalParams) => Promise<VpnGatewayNatRule>

属性值

(resourceGroupName: string, gatewayName: string, natRuleName: string, options?: NatRulesGetOptionalParams) => Promise<VpnGatewayNatRule>

listByVpnGateway

检索特定虚拟 WAN VPN 网关的所有 nat 规则。

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

属性值

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