You need to enable JavaScript to run this app.
文档中心
私有网络

私有网络

复制全文
下载 pdf
路由表
ModifyRouteEntry - 修改路由条目
复制全文
下载 pdf
ModifyRouteEntry - 修改路由条目
调用 ModifyRouteEntry 接口,修改自定义路由条目的名称、描述。​
使用说明​
以下可选参数如不配置,则保持原有配置。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action String 必选 示例值:ModifyRouteEntry​
接口名称。当前 API 的名称为ModifyRouteEntry。​
​
Version String 必选 示例值:2020-04-01​
接口版本。当前 API 的版本为 2020-04-01。​
​
RouteEntryId String 必选 示例值:rte-3tj9gw2pwq3vj******​
路由条目ID。​
您可以调用 DescribeRouteEntryList 接口,查询路由条目ID。​
​
RouteEntryName String 可选 示例值:route-entry-1​
路由条目名称。​
  • 长度限制为1 ~ 128个字符。​
  • 需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。​
​
Description String 可选 示例值:This is my first route entry​
路由条目描述。​
  • 长度限制为 0~ 255个字符。​
  • 需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。​
​
NextHopType String 可选 示例值:NetworkInterface​
  • 子网路由表:自定义路由条目的下一跳的类型。取值如下:​
  • Instance:ECS实例​
  • HaVip:高可用虚拟IP​
  • NetworkInterface:辅助网卡​
  • NatGW:NAT网关​
  • VpnGW:VPN网关​
  • TransitRouter:中转路由器​
  • GWLBEndpoint:网关负载均衡终端节点​
  • 网关路由表:自定义路由条目的下一跳的类型。取值如下:​
  • NetworkInterface:辅助网卡​
  • GWLBEndpoint:网关负载均衡终端节点​
说明​
  • 网关负载均衡正在邀测中,如需使用,请联系客户经理申请。​
  • 仅自定义路由表支持传入GWLBEndpoint。当GWLBEndpoint的目标网段和local路由目标网段相同时,GWLBEndpoint路由生效。​
​
NextHopId String 可选 示例值:ngw-2feq5xhimd88w59gp686****​
下一跳资源的ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId String 示例值:2021062415303301022514515207C4****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=ModifyRouteEntry&Version=2020-04-01&RouteEntryId=rte-3tj9gw2pwq3vj******&RouteEntryName=route-entry-1 HTTP/1.1​
Host: vpc.cn-beijing.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/vpc/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "ModifyRouteEntry",​
"Version": "2020-04-01",​
"Service": "vpc",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "2021062415303301022514515207C4****"​
}​
}​
​
错误码​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
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​
InvalidRouteEntry.PublishedToCen​
The specified route entry has been published to CEN.​
指定的路由条目已经发布到CEN,无法修改。​
400​
InvalidRouteNextHop.Malformed​
The specified next hop is malformed.​
指定的下一跳不合法。​
400​
InvalidVpc.InvalidStatus​
The specified VPC is not in the correct status for the request.​
指定的VPC所处状态无法响应该请求。​
400​
InvalidVpcPeeringConnection.InvalidStatus​
The specified VPC peering connection is not in the correct status for the request. The specified VPC peering connection is in freeze.​
指定的对等连接所处的状态无法响应该请求。当前对等连接被冻结。​
403​
Forbidden.RouteNextHopType​
You are not authorized to perform operations on the specified route next hop. The specified route next hop type is not allowed to modify instance.​
无权限对路由下一跳类型进行修改。​
403​
Forbidden​
You are not authorized to perform operations on the specified route entry. The specified route entry is a system route entry.​
无权限对指定路由条目进行操作。指定的路由条目为系统路由条目。​
404​
InvalidRouteEntry.NotFound​
The specified route entry does not exist.​
指定的路由条目不存在。​
404​
InvalidRouteTable.NotFound​
The specified route table does not exist.​
指定的路由表不存在。​
409​
InvalidRouteCidr.Conflict​
The specified CIDR block conflicts with that of another subnet in your VPC.​
指定的CIDR地址块与所属VPC中另一个子网的CIDR地址块冲突。​
​
​
最近更新时间:2026.09.23 11:14:33
这个页面对您有帮助吗?
有用
有用
无用
无用