Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)


Describes one or more of the your NAT gateways.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.


One or more filters.

  • nat-gateway-id - The ID of the NAT gateway.

  • state - The state of the NAT gateway (pending | failed | available | deleting | deleted).

  • subnet-id - The ID of the subnet in which the NAT gateway resides.

  • vpc-id - The ID of the VPC in which the NAT gateway resides.

Type: Array of Filter objects

Required: No


The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

Constraint: If the value specified is greater than 1000, we return only 1000 items.

Type: Integer

Required: No


One or more NAT gateway IDs.

Type: Array of strings

Required: No


The token to retrieve the next page of results.

Type: String

Required: No

Response Elements

The following elements are returned by the service.


Information about the NAT gateways.

Type: Array of NatGateway objects


The token to use to retrieve the next page of results. This value is null when there are no more results to return.

Type: String


The ID of the request.

Type: String


For information about the errors that are common to all actions, see Common Errors.



This example describes all of your NAT gateways.

Sample Request


Sample Response

<DescribeNatGatewaysResponse xmlns=""> <requestId>bfed02c6-dae9-47c0-86a2-example</requestId> <natGatewaySet> <item> <subnetId>subnet-1a2a3a4a</subnetId> <natGatewayAddressSet> <item> <networkInterfaceId>eni-00e37850</networkInterfaceId> <publicIp></publicIp> <allocationId>eipalloc-37fc1a52</allocationId> <privateIp></privateIp> </item> </natGatewayAddressSet> <createTime>2015-11-25T14:00:55.416Z</createTime> <vpcId>vpc-4e20d42b</vpcId> <natGatewayId>nat-04e77a5e9c34432f9</natGatewayId> <state>available</state> </item> </natGatewaySet> </DescribeNatGatewaysResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: