最近更新时间:2024.01.10 10:41:30
首次发布时间:2021.07.29 14:11:54
调用 ModifyRouteEntry 接口,修改自定义路由条目的名称、描述。
以下可选参数如不配置,则保持原有配置。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ModifyRouteEntry | 要执行的操作,取值:ModifyRouteEntry。 |
Version | String | 是 | 2020-04-01 | API版本信息,取值为:2020-04-01。 |
RouteEntryId | String | 是 | rte-3tj9gw2pwq3vj****** | 路由条目ID。 |
RouteEntryName | String | 否 | route-entry-1 | 路由条目名称。
|
Description | String | 否 | This is my first route entry | 路由条目描述。
|
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 2021062415303301022514515207C4**** | 请求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 | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidVpc.InvalidStatus | The specified VPC is not in the correct status for the request. | 指定的VPC所处状态无法响应该请求。 |
400 | InvalidName.Malformed | The specified name is malformed. Ensure the maximum length of name is 128. | 指定的名称格式不合法。名称长度不能超过128个字符。 |
400 | InvalidName.Malformed | The specified name is malformed. | 指定的名称格式不合法。请修复名称格式后重试。 |
400 | InvalidDescription.Malformed | The specified description is malformed. Ensure the maximum length of description is 255. | 指定的描述格式不合法。描述长度不能超过255个字符。 |
400 | InvalidDescription.Malformed | The specified description is malformed. | 指定的描述格式不合法。请修复描述格式后重试。 |
404 | InvalidRouteEntry.NotFound | The specified route entry does not exist. | 指定的路由条目不存在。 |