UpdateNatGatewayNatType_专有网络_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

使用说明

调用 UpdateNatGatewayNatType 接口前,请先了解以下内容:

  • UpdateNatGatewayNatType 接口属于异步接口,即系统会先返回一个请求 ID,但 NAT 网关的网关类型并未升级完成,系统后台的升级任务仍在进行。您可以调用 GetNatGatewayConvertStatus 查询 NAT 网关的升级状态,更多信息,请参见 GetNatGatewayConvertStatus

    • 当 NAT 网关的升级状态处于 processing 时,表示正在升级中,在该状态下,您只能执行查询操作,不能执行其他操作。

    • 当 NAT 网关的升级状态处于 successful 时,表示 NAT 网关的网关类型升级完成。

    • 当 NAT 网关的升级状态处于 failed 时,表示 NAT 网关的网关类型升级失败。

  • UpdateNatGatewayNatType 接口在同一个 NAT 网关中不支持并发升级 NAT 网关的网关类型。

  • 增强型 NAT 网关与普通型 NAT 网关的计费相同,升级过程和升级后计费方式不会改变。

  • 每个资源升级过程可能会持续 5 分钟,升级过程中会出现 1~2 次秒级闪断,业务重连即可恢复。重连机制为自动重连还是手动重连由业务本身决定。

  • 仅支持将普通型 NAT 网关升级至增强型 NAT 网关,不支持将增强型 NAT 网关降级至普通型 NAT 网关。

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:UpdateNatGatewayNatType
Update
NatGateway
acs:vpc:{#regionId}:{#accountId}:natgateway/{#NatGatewayId}

请求参数

字段名称字段详情
RegionIdstring

要升级的普通型公网 NAT 网关所属的地域 ID。展开详情

示例值:cn-qingdao
NatGatewayIdstring

要升级的普通型公网 NAT 网关实例 ID。

示例值:ngw-bp1b0lic8uz4r6vf2****
VSwitchIdstring

升级后增强型公网 NAT 网关所属的交换机。展开详情

示例值:vsw-bp17nszybg8epodke****
NatTypestring

公网 NAT 网关类型。取值:Enhanced,表示增强型公网 NAT 网关。

示例值:Enhanced
DryRunboolean

是否只预检此次请求,取值:展开详情

示例值:false
ClientTokenstring

客户端 Token,用于保证请求的幂等性。展开详情

示例值:0c593ea1-3bea-11e9-b96b-88e9fe637760

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:0ED8D006-F706-4D23-88ED-E11ED28DCAC0

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
OperationUnsupported.NatConvert
The NAT gateway conversion function is not supported.诊断
400
OperationFailed.VpcNotExist
The specified VPC does not exist.诊断
400
OperationFailed.VswNotExist
The specified VSwitch does not exist.诊断
400
OperationFailed.NatTypeNotEnhanced
Operation failed because the specified NAT gateway type is not enhanced.诊断
400
OperationFailed.NatGwBindWithBandwidthPackage
Operation failed because the NAT gateway is bound to bandwidth packages.诊断
400
IncorrectStatus.NatGateway
The status of NAT gateway is incorrect.诊断
400
OperationFailed.EipInMiddleStatus
Operation failed because the status of EIP associated with the specified NAT gateway is abnormal.诊断
400
OperationFailed.SnatInMiddleStatus
Operation failed because the status of the SNAT entry of the specified NAT gateway is abnormal.诊断
400
OperationFailed.DnatInMiddleStatus
Operation failed because the status of the DNAT entry associated with the NAT gateway is abnormal.诊断
400
OperationFailed.NatGwRouteInMiddleStatus
Operation failed because the status of the route entry associated with the NAT gateway is abnormal.诊断
400
OperationFailed.EnhancedInventoryNotEnough
The enhanced NAT gateway inventory is insufficient in the specified zone.诊断
400
OperationFailed.EnhancedUserIsUnAuthorized
Operation failed because the user is not authorized to create an enhanced NAT gateway.诊断
400
OperationFailed.EnhancedRegion
Operation failed because enhanced NAT gateways are not available for sale in the specified region.诊断
400
OperationFailed.EnhancedQuotaExceed
Operation failed because the maximum number of enhanced NAT gateways in the same VPC is exceeded.诊断
400
InvalidBandwidthPackageIdNumber.NotSupported
The number of BandwidthPackageIds exceeds the limit.诊断
400
OperationFailed.VswNotBelongToVpc
Operation failed because the specified VSwitch is not bound to the same VPC with NAT gateway.诊断
400
OperationUnsupported.VpcAttachedCen
Operation failed because the VPC is attached to CEN.诊断
400
OperationUnsupported.RouterInterfaceExist
Operation failed because the VPC has a router interface.诊断
400
OperationFailed.VRouterNotExist
Operation failed because the VRouter does not exist.诊断
400
OperationFailed.SnatQuotaExceed
Operation failed because the maximum number of SNAT entry is exceeded.诊断
400
OperationFailed.DnatQuotaExceed
Operation failed because the maximum number of forward entry is exceeded.诊断
400
OperationFailed.VswBindedRouteTable
The operation failed because a custom route table that contains subnet routes is associated with the specified VSwitch.诊断
400
OperationFailed.VswBindedAcl
The operation failed because a network ACL is associated with the specified VSwitch.诊断
400
Forbidden.Convert
User does not have permission to operate.诊断
400
NATGW_NOT_EXIST
The specified NAT gateway does not exist.诊断
404
InvalidRegionId.NotFound
The specified RegionId does not exist in our records.诊断

变更历史

变更时间变更内容概要操作
2024-10-18
新增deprecated
变更错误码400
2023-03-01
新增返回参数

相关示例