Modifies the name and description of a route table.
Operation description
ModifyRouteTableAttributes 接口不支持并发修改同一个路由表的属性,如名称、描述,或是否接收动态路由。
当调用 ModifyRouteTableAttributes 接口开启或关闭传播路由时,请注意:
开启或者关闭传播路由操作是异步操作。
开启或者关闭传播路由操作的完成时间与传播路由数量相关。
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyRouteTableAttributes |
update |
*RouteTable
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RouteTableId |
string |
Yes |
The ID of the route table. |
vtb-bp145q7glnuzdvzu2**** |
| RouteTableName |
string |
No |
The name of the route table. The name must be 1 to 128 characters in length and cannot start with |
doctest |
| Description |
string |
No |
The description of the route table. The description must be 1 to 256 characters in length, and cannot start with |
描述信息 |
| RegionId |
string |
Yes |
The region ID of the virtual private cloud (VPC) to which the custom route table belongs. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| RoutePropagationEnable |
boolean |
No |
Indicates whether to enable route propagation to receive dynamic routes. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
62172DD5-6BAC-45DF-8D44 |
Examples
Success response
JSON format
{
"RequestId": "62172DD5-6BAC-45DF-8D44"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Abs.InvaliTableName.Malformed | Table name format is invalid. | The new name of the route table is invalid. |
| 400 | Abs.InvalidRouteTableId.NotExist | The route table id is not exist. | |
| 400 | InvalidDescription.Malformed | Description format is invalid. | |
| 400 | Forbidden.DisableRoutePropagation | The operation of disable route propagation is forbidden. | Shutting down route propagation for this routing table is not allowed. |
| 400 | ResourceNotFound.RouteTable | The specified resource gatewayRouteTable is not found. | The gateway route table does not exist. |
| 400 | IncorrectStatus.RouteTable | The route table is in an invalid state. | The specified routing table is in the wrong state |
| 400 | IncorrectStatus.RoutePropagationStatus | Route table propagation status not stable. Please wait and try again. | Route table propagation status not stable. Please wait and try again. |
| 400 | IncorrectStatus.RouteEntry | The status of %s [%s] is incorrect. | Route entry is in non-steady state |
| 400 | IncorrectStatus.Vpc | Vpc status is invalid. | The VPC is in an unstable state. |
| 403 | Forbbiden | User not authorized to operate on the specified resource. | User not authorized to operate on the specified resource. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.