| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Deletes a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.
Important
We strongly recommend you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway.
For more information about VPN connections, see Adding an IPsec Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
DestinationCidrBlockThe CIDR block associated with the local subnet of the customer data center.
Type: String
Default: None
Required: Yes
VpnConnectionIdThe ID of the VPN connection.
Type: String
Default: None
Required: Yes
The following elements are returned in an
DeleteVpnConnectionRouteResponse element.
requestIdThe ID of the request.
Type: xsd:string
returnReturns true if the request succeeds. Otherwise, returns an error.
Type: xsd:boolean
This example deletes a static route to the destination CIDR block 11.12.0.0/16 associated with the VPN connection with ID vpn-83ad48ea. Note that when using the Query API the "/" is denoted as "%2F".
https://ec2.amazonaws.com/?Action=DeleteVpnConnectionRoute &DestinationCidrBlock=11.12.0.0%2F16 &VpnConnectionId=vpn-83ad48ea &AUTHPARAMS
<DeleteVpnConnectionRouteResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
<requestId>4f35a1b2-c2c3-4093-b51f-abb9d7311990</requestId>
<return>true</return>
</DeleteVpnConnectionRouteResponse>