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

NAT网关

复制全文
下载 pdf
计费
ConvertNatGatewayBillingType
复制全文
下载 pdf
ConvertNatGatewayBillingType
调用 ConvertNatGatewayBillingType 接口,为NAT网关转换计费方式。​
接口说明​
  • 支持的计费转换方式:​
  • 按规格计费转包年包月​
  • 按规格计费转按使用量计费。​
  • 按使用量计费转按规格计费。​
  • NAT网关按规格计费转包年包月,不支持同时调整规格。​
说明​
包年包月NAT网关不支持降低规格,若需要降低规格,请在计费转换前调用ModifyNatGatewayAttributes 修改。​
请求参数​
​
参数名称​
类型​
是否必选​
示例值​
描述​
Action​
String​
是​
ConvertNatGatewayBillingType​
要执行的操作,取值:ConvertNatGatewayBillingType。​
Version​
String​
是​
2020-04-01​
API的版本信息,当前版本为:2020-04-01。​
NatGatewayId​
String​
是​
ngw-2feq5xhimd88w59gp686****​
待计费转换NAT网关的ID。​
BillingType​
Integer​
是​
1​
NAT网关的计费方式。取值如下:​
  • 1 :包年包月。​
  • 2:按量计费-按规格计费。​
  • 3:按量计费-按使用量计费。​
PeriodUnit​
String​
否​
Month​
购买包年包月类型NAT网关时长的单位,默认Month。​
  • 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=ConvertNatGatewayBillingType&Version=2020-04-01&NatGatewayId=ngw-2fedgzyvtzaio59gp675l****&BillingType=1 HTTP/1.1​
Host: open.volcengineapi.com​
Service: natgateway​
Region: cn-beijing​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2021062415303301022514515207C4****",​
"Action": "ConvertNatGatewayBillingType",​
"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​
InvalidParameter.ClientTokenMalformed​
The specified parameter ClientToken is malformed.​
指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。​
400​
PreOrderError​
Failed to create preorder.​
创建配置单失败。​
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 instance is denied due to the account balance and available vouchers are less than 100 yuan in total.​
因账户余额及可用代金券共不足100元,对于该实例的操作请求被拒绝。​
400​
UnsupportedOperation​
The request on the specified NAT gateway is denied due to the account in arrears status.​
因账户处于欠费状态,对于该NAT网关的操作请求被拒绝。​
404​
InvalidNatGateway.NotFound​
The specified NAT gateway does not exist.​
指定的NAT网关不存在。​
412​
InvalidNatGateway.Expired​
The specified NatGateway has expired.​
指定的NAT网关实例已到期。​
​
最近更新时间:2026.10.30 11:15:38
这个页面对您有帮助吗?
有用
有用
无用
无用