Disassociates a subnet from a route table.
After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, go to Route Tables in the Amazon Virtual Private Cloud User Guide.
| Name | Description | Required |
|---|---|---|
|
|
The association ID representing the current association between the route table and subnet. Type: String Default: None |
Yes |
The elements in the following table are wrapped in a
DisassociateRouteTableResponse structure.
| Name | Description |
|---|---|
|
|
The ID of the request. Type: String |
|
|
Returns true if the request succeeds. Otherwise, returns an error. Type: xsd:boolean |
This example disassociates the route table with association ID rtbassoc-fdad4894 from the subnet it's associated to.
https://ec2.amazonaws.com/?Action=DisassociateRouteTable &AssociationId=rtbassoc-fdad4894 &AUTHPARAMS
<DisassociateRouteTableResponse xmlns="http://ec2.amazonaws.com/doc/2011-01-01/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </DisassociateRouteTableResponse>