Amazon Elastic Compute Cloud
API Reference (API Version 2012-04-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

DeleteCustomerGateway

Description

Deletes a VPN customer gateway. You must delete the VPN connection before deleting the customer gateway.

For more information about Amazon Virtual Private Cloud and VPN customer gateways, go to Adding an IPsec Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.

Request Parameters

NameDescriptionRequired

CustomerGatewayId

The ID of the customer gateway you want to delete.

Type: String

Default: None

Yes

Response Elements

The elements in the following table are wrapped in an DeleteCustomerGatewayResponse structure.

NameDescription

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 deletes the customer gateway with ID cgw-b4dc3961.

https://ec2.amazonaws.com/?Action=DeleteCustomerGateway
&CustomerGatewayId=cgw-b4dc3961
&AUTHPARAMS

Example Response

<DeleteCustomerGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2012-04-01/">
   <requestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</requestId>
   <return>true</return>
</DeleteCustomerGatewayResponse>