AssociateRouteTable

GET /?Action=AssociateRouteTable
Description

Associates a subnet with a route table
The subnet and the route table must be in the same VPC. The traffic is routed according to the route table defined within this VPC. You can associate a route table with several subnets.

Body parameter

Required: false
Name: AssociateRouteTableRequest

Name Description Required Schema Default Example

RouteTableId

The ID of the route table.

true

string

SubnetId

The ID of the subnet.

true

string

Responses
HTTP Code 200
HTTP Code Description Schema

200

AssociateRouteTableResult

Response 200

Response 200

Name Description Required Schema Default Example

associationId

The ID of the route table association.

false

string

requestId

The ID of the request.

false

string