AWS SDK for .NET Documentation
DescribeVpnGateways Method (request)
Amazon ► Amazon.EC2 ► AmazonEC2 ► DescribeVpnGateways(DescribeVpnGatewaysRequest)
Did this page help you? Yes No Tell us about it...
Gives you information about your VPN gateways.
Declaration Syntax

C#

    DescribeVpnGatewaysResponse DescribeVpnGateways(
    	DescribeVpnGatewaysRequest request
    )

Parameters

request (DescribeVpnGatewaysRequest)
  Describe Vpn Gateways request

Return Value
Describe Vpn Gateways Response from the service
Remarks
You can filter the results to return information only about VPN gateways that match criteria you specify. For example, you could ask to get information about a particular VPN gateway (or all) only if the gateway's state is pending or available. You can specify multiple filters (e.g., the VPN gateway is in a particular Availability Zone and the gateway's state is pending or available). The result includes information for a particular VPN gateway only if the gateway matches all your filters. If there's no match, no special message is returned; the response is simply empty. The returned information consists of: 1. The VPN gateway ID - The current state of the VPN gateway (pending, available, deleting, deleted) 2. The type of VPN connection the VPN gateway supports. 3. The Availability Zone where the VPN gateway was created. 4. The VPCs the VPN gateway is attached to and the state of each attachment (attaching, attached, detaching, detached)
Exceptions

Exception | Condition
--- | ---
WebException |
AmazonEC2Exception |

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)