Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DisassociateRouteTable

Description

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, see Route Tables in the Amazon Virtual Private Cloud User Guide.

Request Parameters

AssociationId

The association ID representing the current association between the route table and subnet.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in a DisassociateRouteTableResponse element.

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

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

Example Response

<DisassociateRouteTableResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
   <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
   <return>true</return>
</DisassociateRouteTableResponse>