You need to enable JavaScript to run this app.
导航

ModifyRouteEntry

最近更新时间2024.01.10 10:41:30

首次发布时间2021.07.29 14:11:54

调用 ModifyRouteEntry 接口,修改自定义路由条目的名称、描述。

调用说明

以下可选参数如不配置,则保持原有配置。

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringModifyRouteEntry要执行的操作,取值:ModifyRouteEntry。
VersionString2020-04-01API版本信息,取值为: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个字符。
  • 需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。

返回数据

参数名称
类型
示例值
描述
RequestIdString2021062415303301022514515207C4****请求ID。

请求示例

GET /?Action=ModifyRouteEntry&Version=2020-04-01&RouteEntryId=rte-3tj9gw2pwq3vj******&RouteEntryName=route-entry-1  HTTP/1.1
Host: open.volcengineapi.com
Service: vpc
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "ModifyRouteEntry",
        "Version": "2020-04-01",
        "Service": "vpc",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "2021062415303301022514515207C4****"
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode
错误码
错误信息
描述
400InvalidVpc.InvalidStatusThe specified VPC is not in the correct status for the request.指定的VPC所处状态无法响应该请求。
400InvalidName.MalformedThe specified name is malformed. Ensure the maximum length of name is 128.指定的名称格式不合法。名称长度不能超过128个字符。
400InvalidName.MalformedThe specified name is malformed.指定的名称格式不合法。请修复名称格式后重试。
400InvalidDescription.MalformedThe specified description is malformed. Ensure the maximum length of description is 255.指定的描述格式不合法。描述长度不能超过255个字符。
400InvalidDescription.MalformedThe specified description is malformed.指定的描述格式不合法。请修复描述格式后重试。
404InvalidRouteEntry.NotFoundThe specified route entry does not exist.指定的路由条目不存在。