CreateRouteTable
In this article:
CreateRouteTable#
Description#
Creates a route table for the specified VPC.
Request Parameters#
Required parameters#
VpcId — The ID of the VPC.
Type: String
Required: Yes
Optional parameters#
TagSpecification.N — The tags assigned to the resource when it is created.
Type: List of TagSpecification objects
Required: No
Response Elements#
requestId — The request ID
Type: String
routeTable — The route table.
Type: RouteTable object
Examples#
c2-ec2 CreateRouteTable VpcId <vpc_id>
c2-ec2 CreateRouteTable VpcId <vpc_id> TagSpecification.0.ResourceType route-table \
TagSpecification.0.Tag.0.Key "tag_key" TagSpecification.0.Tag.0.Value "tag_value"