Creates a custom route table.


By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String  Yes  CreateRouteTable

The name of this action. Value: 


RegionId String  Yes  cn-hangzhou

The region ID of the VPC to which the route table belongs.

To query the region ID, call DescribeRegions.

VpcId String  Yes  vpc-bp1qpo0kug3a20qqe9h7v The ID of the VPC to which the custom route table belongs.
ClientToken String No 02fb3da4-130e-11e9-8e44-0016e04115b

A client token used to guarantee the idempotence of requests.

This parameter value is generated by the client and must be unique. It must be 1 to 64 ASCII characters in length.

Description String  No The name of the route table

The description of the route table.

The description must be 2 to 256 characters in length. The description must start with a letter, but cannot start with http:// or https://.

RouteTableName String  No myRouteTable

The name of the route table.

The name must be 2 to 128 characters in length. It can contain letters, numbers, periods (.), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.

Response parameters

Parameter Type Example value Description
RequestId String 0ED8D006-F706-4D23-88ED-E11ED28DCAC0 The ID of the request.
RouteTableId String vtb-bp145q7glnuzdvzu21pom The ID of the route table.


Request example
Response example
  • XML format

      <RouteTableId> "vtb-m5evbtbptxxxxxxxxxx</RouteTableId>
  • JSON format


Error codes

HTTP status code Error code Error message Description
400 InvalidParameter.Description.Malformed The specified Description is not valid. The description is invalid.
404 InvalidVpcId.NotFound Specified VPC does not exist. The specified VPC does not exist.

See common error codes