All Products
Search
Document Center

Virtual Private Cloud:ModifyRouteTableAttributes

Last Updated:Aug 28, 2026

Modifies the name and description of a route table.

Operation description

ModifyRouteTableAttributes 接口不支持并发修改同一个路由表的属性,如名称、描述,或是否接收动态路由。

当调用 ModifyRouteTableAttributes 接口开启或关闭传播路由时,请注意:

  • 开启或者关闭传播路由操作是异步操作。

  • 开启或者关闭传播路由操作的完成时间与传播路由数量相关。

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vpc:ModifyRouteTableAttributes

update

*RouteTable

acs:vpc:{#regionId}:{#accountId}:routetable/{#RouteTableId}

  • vpc:VRouter
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 http:// or https://.

doctest

Description

string

No

The description of the route table.

The description must be 1 to 256 characters in length, and cannot start with http:// or https://.

描述信息

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 (default): enables route propagation.

  • false: disables route propagation.

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.