调用ModifyRouteEntry修改自定义路由条目的名称和描述。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
vpc:ModifyRouteEntry | Write |
|
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 路由条目所在的地域ID。 您可以通过调用DescribeRegions接口获取地域ID。 | cn-hangzhou |
RouteEntryName | string | 否 | 路由条目的名称。 名称长度为1~128个字符,不能以 | EntryName |
RouteEntryId | string | 是 | 自定义路由条目ID。 | rte-acfvgfsghfdd**** |
Description | string | 否 | 路由条目的描述。 描述长度为1~256个字符,不能以 | EntryDescription |
NewNextHopType | string | 否 | 新路由条目下一跳类型 | |
NewNextHopId | string | 否 | 新路由条目下一跳实例ID |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "861E6630-AEC0-4B2D-B214-6CB5E44B7F04"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidRouteEntryId.NotFound | Specified RouteEntryId does not exist. | 指定的路由条目未找到 |
400 | InvalidRouteEntryName.Malformed | Specified RouteEntry name is not valid. | 无法修改,因为指定的路由条目名称无效 |
400 | MissingParam.RouteEntryId | %s | - |
400 | IllegalParam.RouteEntryName | %s | - |
400 | InvalidRouteEntryId.NotFound | %s | - |
400 | InvalidRouteEntryId.NotFound | The specified routeEntry does not exist. | 指定的路由条目不存在。 |
400 | OperationDenied.ModifyManagedRouteEntry | The operation is not allowed because of route entry is managed. | 无法修改被托管的路由。 |
400 | OperationDenied.RouteTableTypeNotPermitted | The operation is not allowed because the type of route table is not permitted. | 指定路由表类型不允许创建路由条目 |
400 | MissingParam.NewNextHopId | The parameter NewNextHopId is mandatory. | 修改路由条目下一跳缺失待修改路由条目下一跳实例ID信息。 |
400 | IllegealParam.NextHopType | The parameter NewNextHopType is illegal. | 路由条目下一跳类型非法。 |
400 | UnsupportedFeature.NormalTypeNatGateway | Normal nat gateways do not support modifying the next hop of the route. | 指向普通类型NAT网关的路由条目不支持修改下一跳。 |
400 | UnsupportedFeature.NextHopType | The route type does not support modifying the next hop of the route. | 当前路由条目不支持修改下一跳信息。 |
400 | InvalidRouteTable.NotFound | The specified routetable does not exist. | 路由表实例不存在。 |
400 | InvalidNetworkInterface.NotFound | The specified network interface does not exist. | 指定的网卡类型下一跳实例ID不存在。 |
400 | OperationDenied.NextHopExist | The operation is not allowed because the nexthop already exists. | 需要修改的目标路由条目下一跳已存在。 |
400 | MissingParam.NewNextHopType | The parameter NewNextHopType is mandatory. | 修改路由条目下一跳缺失待修改路由条目下一跳实例类型信息。 |
400 | UnsupportedFeature.ModifyRouteEntryNextHop | The current region does not support the function of modifying the route next hop. | 当前地域不支持修改路由下一跳功能。 |
403 | Forbbiden | User not authorized to operate on the specified resource. | 用户没有权限操作指定的资源。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-09-15 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||||
| ||||||||||||||||
2023-09-15 | OpenAPI 描述信息更新,OpenAPI 错误码发生变更,OpenAPI 入参发生变更 | 看变更集 | ||||||||||||||
| ||||||||||||||||
2023-05-08 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||||
|