Modifies the name and description of a route table.
Usage notes
You cannot repeatedly call the ModifyRouteTableAttributes operation to modify the name and description of a route table within the specified period of time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
RouteTableId | String | Yes | vtb-bp145q7glnuzdvzu2**** |
The ID of the route table. |
RouteTableName | String | No | doctest |
The name of the route table. The name must be 1 to 128 characters in length, and cannot start with |
Description | String | No | Description |
The description of the route table. The description must be 1 to 256 characters in length, and cannot start with |
Action | String | Yes | ModifyRouteTableAttributes |
The operation that you want to perform. Set the value to ModifyRouteTableAttributes. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the virtual private cloud (VPC) to which the route table belongs. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 62172DD5-6BAC-45DF-8D44 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?RouteTableId=vtb-bp145q7glnuzdvzu2****
&RouteTableName=doctest
&Description=Description
&Action=ModifyRouteTableAttributes
&RegionId=cn-hangzhou
&Common request parameters
Sample responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyRouteTableAttributesResponse>
<RequestId>62172DD5-6BAC-45DF-8D44</RequestId>
</ModifyRouteTableAttributesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "62172DD5-6BAC-45DF-8D44"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | Abs.InvaliTableName.Malformed | Table name format is invalid. | The error message returned because the new name of the route table is invalid. |
403 | Forbbiden | User not authorized to operate on the specified resource. | The error message returned because you are unauthorized to perform this operation on the specified resource. Apply for the required permissions and try again. |
For a list of error codes, visit the API Error Center.