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

NAT网关

复制全文
下载 pdf
NAT网关
ModifyNatGatewayAttributes - 修改NAT网关
复制全文
下载 pdf
ModifyNatGatewayAttributes - 修改NAT网关
调用 ModifyNatGatewayAttributes 接口,修改NAT网关的规格、名称、描述。​
使用说明​
  • 当前账户未欠费,且有足够的余额支付后续NAT网关的费用。​
  • 包年包月NAT网关只支持提升规格,不支持降低规格。​
  • 本接口中非必填参数不填表示不修改。​
  • 以下可选参数如不配置,则保持原有配置。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:ModifyNatGatewayAttributes​
要执行的操作,取值:ModifyNatGatewayAttributes。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
Description string 可选 示例值:This is a nat​
NAT网关的描述。​
  • 需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。​
  • 长度限制为1 ~ 255个字符。不传保持原有配置。​
​
NatGatewayName string 可选 示例值:nat-01​
NAT网关的名称。​
  • 需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。​
  • 长度限制为1 ~ 128个字符。不传保持原有配置。​
​
Spec string 可选 示例值:Medium​
NAT网关的目标规格,取值如下:​
  • Small(默认):小型。​
  • Medium:中型。​
  • Large:大型。​
说明​
私网NAT无规格属性,不支持变更。​
​
SmartScheduleEnabled boolean 可选 示例值:true​
是否开启智能调度,取值如下:​
  • true:开启。​
  • false:不开启。​
​
SmartScheduleRule string 可选 示例值:BGP​
智能调度策略规则,取值如下:​
  • ChinaMobile:中国移动。​
  • ChinaTelecom:中国电信。​
  • ChinaUnicom:中国联通。​
  • BGP:BGP线路。​
​
DirectMode boolean 可选 示例值:false​
修改NAT网关直通类型。取值如下:​
  • false:将nat网关转为非直通模式​
​
NatGatewayId string 必选 示例值:ngw-3tex2x1cwd4c6c0v****​
NAT网关的ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId string 示例值:2021062415303301022514515207C4****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=ModifyNatGatewayAttributes&Version=2020-04-01&NatGatewayId=ngw-2fedgzyvtzaio59gp675l****&Spec=Small HTTP/1.1​
Host: natgateway.cn-beijing.volcengineapi.com​
Service: natgateway​
Region: cn-beijing​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2021062415303301022514515207C4****",​
"Action": "ModifyNatGatewayAttributes",​
"Version": "2020-04-01",​
"Service": "natgateway",​
"Region": "cn-beijing"​
},​
"Result":{​
"RequestId": "2021062415303301022514515207C4****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
MissingParameter​
The request is missing a required parameter.​
该请求缺少必要参数。​
400​
InvalidNatGateway.InvalidBillingType​
The specified NAT gateway is not in the correct billing type for the request.​
指定的NAT网关所处计费类型无法响应该请求。​
400​
InvalidNatGateway.InvalidStatus​
The specified NAT gateway is not in the correct status for the request.​
指定的NAT网关所处的状态无法响应该请求。​
400​
InvalidNatGatewaySpec.Malformed​
The specified NAT spec is malformed.​
指定的NAT网关规格不支持。​
400​
UnsupportedOperation​
The request on the specified instance is denied due to the account in arrears status.​
因账户处于欠费状态,对于该实例的操作请求被拒绝。​
400​
QuotaExceeded.ExtraLargeNatGateway​
You've reached the limit on the number of extra large NAT gateway that you can create.​
已达到可创建的超大型NAT网关的数量上限。​
400​
InvalidNatGateway.SmartScheduleNotSupport​
The number of EIP types bound by NAT does not support nat smart schedule.​
NAT绑定的EIP运营商类别少于两个,不支持使用智能调度。​
400​
InvalidNatGateway.SmartScheduleNotSupported​
The specified NAT gateway does not support nat smart schedule.​
指定的NAT网关实例不支持使用智能调度。​
400​
InvalidDescription.Malformed​
The specified description is malformed.​
指定的描述格式不合法。请修复描述格式后重试。​
400​
InvalidDescription.Malformed​
The specified description is malformed. Ensure the maximum length of description is 255.​
指定的描述格式不合法。描述长度不能超过255个字符。​
400​
InvalidName.Malformed​
The specified name is malformed.​
指定的名称格式不合法。请修复名称格式后重试。​
400​
InvalidName.Malformed​
The specified name is malformed. Ensure the maximum length of name is 128.​
指定的名称格式不合法。名称长度不能超过128个字符。​
400​
InvalidNatGateway.QosNotSupport​
The specified nat gateway does not support qos.​
指定的NAT网关不支持QoS。​
400​
InvalidNatGateway.QosAlreadyEnabled​
The specified nat gateway qos is already enabled.​
指定的NAT网关QoS已开启。​
400​
InvalidNatGateway.QosQueueExist​
The specified NAT gateway has dependent resource of qos queue.​
指定的NAT网关残留QoS队列,无法删除。​
403​
Forbidden​
You are not authorized to create or update an extra large NAT gateway.​
无权限创建或修改过超大型NAT网关。​
403​
Forbidden​
You are not authorized to use nat qos.​
无权限使用NAT QoS。​
403​
Forbidden.SmartScheduleLimited​
You are not authorized to use nat smart schedule.​
无权限使用NAT网关智能调度。​
404​
InvalidNatGateway.NotFound​
The specified NAT gateway does not exist.​
指定的NAT网关不存在。​
412​
InvalidNatGateway.Expired​
The specified NAT gateway has expired.​
指定的NAT网关已到期。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。​
​
​
最近更新时间:2025.12.23 18:56:15
这个页面对您有帮助吗?
有用
有用
无用
无用