Deletes a route from a route table in a VPC. For more information about route tables, go to Route Tables in the Amazon Virtual Private Cloud User Guide.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The ID of the route table where the route will be deleted. |
|
|
Required |
The CIDR range for the route you want to delete. The value you specify must exactly match the CIDR for the route you want to delete. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Delete a VPC route.
$ec2 = new AmazonEC2(); $response = $ec2->delete_route('rtb-e68b0b8f', '0.0.0.0/0'); var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (8 lines) | View on GitHub