You need to enable JavaScript to run this app.
文档中心
NAT网关

NAT网关

复制全文
下载 pdf
计费
RenewNatGateway
复制全文
下载 pdf
RenewNatGateway
调用 RenewNatGateway 接口,为包年包月NAT网关续费。​
请求参数​
​
参数名称​
类型​
是否必选​
示例值​
描述​
Action​
String​
是​
RenewNatGateway​
要执行的操作,取值:RenewNatGateway。​
Version​
String​
是​
2020-04-01​
API的版本信息,当前版本为:2020-04-01。​
NatGatewayId​
String​
是​
ngw-2feq5xhimd88w59gp686****​
待续费NAT网关的ID。​
PeriodUnit​
String​
否​
Month​
续费包年包月NAT网关时长的单位。取值如下:​
  • Month(默认):月 。​
  • Year 年。​
Period​
Integer​
否​
2​
续费包年包月NAT网关的时长,默认1。​
  • 当PeriodUnit传入“Month”,Period取值范围:1~9、12、24、36。​
  • 当PeriodUnit传入“Year”,Period取值范:1~3。​
​
返回数据​
​
参数名称​
类型​
示例值​
描述​
RequestId​
String​
2021062415303301022514515207C4****​
请求ID。​
​
请求示例​
​
GET /?Action=RenewNatGateway&Version=2020-04-01&NatGatewayId=ngw-2feq5xhimd88w59gp686**** HTTP/1.1​
Host: open.volcengineapi.com​
Service: natgateway​
Region: cn-beijing​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2021062415303301022514515207C4****",​
"Action": "RenewNatGateway",​
"Version": "2020-04-01",​
"Service": "natgateway",​
"Region": "cn-beijing"​
},​
"Result":{​
"RequestId": "2021062415303301022514515207C4****"​
}​
}​
​
错误码​
公共错误码,请参见 公共错误码 。​
​
HttpCode​
错误码​
错误信息​
描述​
400​
InvalidBillingType.Malformed​
The specified billing type is malformed.​
指定的计费类型不合法。​
400​
InvalidMonthPeriod.Malformed​
The specified monthly period is malformed.Monthly period only supports 1~9, 12, 24, 36.​
指定的包年包月按月购买时长不合法。包年包月按月购买时长只支持1~9, 12, 24, 36月。​
400​
InvalidNatGateway.InvalidBillingType​
The specified NatGateway is not in the correct BillingStatus for the request.​
指定的NAT网关实例所处计费类型无法响应该请求。​
400​
InvalidPeriodUnit.Malformed​
The specified period unit is malformed.Pre billing period unit can only be Month or Year.​
指定的包年包月类型时长单位不合法。包年包月类型时长单位只能为月或年。​
400​
InvalidYearPeriod.Malformed​
The specified yearly period is malformed.Yearly period only supports 1~3.​
指定的包年包月按年购买时长不合法。包年包月按年购买时长只支持1~3年。​
400​
OrderError​
Failed to create an order in one step.​
创建订单并支付失败。​
400​
UnsupportedOperation​
The request on the specified NAT gateway is denied due to the account in arrears status.​
因账户处于欠费状态,对于该NAT网关的操作请求被拒绝。​
400​
UnsupportedOperation​
The request on the specified instance is denied due to the account balance and available vouchers are less than 100 yuan in total.​
因账户余额及可用代金券共不足100元,对于该实例的操作请求被拒绝。​
404​
InvalidNatGateway.NotFound​
The specified NAT gateway does not exist.​
指定的NAT网关不存在。​
​
最近更新时间:2026.10.30 11:15:38
这个页面对您有帮助吗?
有用
有用
无用
无用