DescribeInternetGateways#

Description#

Request for a list of Internet gateways of all existing VPCs and their descriptions. Filtering by the specified criteria allows you to limit the output to only the necessary Internet gateways.

Request Parameters#

  • Filter.N — One or more filters.

    • Type: List of Filter objects

    • Required: No

  • InternetGatewayId.N — The IDs of Internet gateways. If not set, information about all the Internet gateways will be displayed.

    • Type: Array of strings

    • Required: No

Supported Filters#

  • internet-gateway-id — The ID of the internet gateway.

  • vpc-id — The ID of the VPC.

Response Elements#

  • internetGatewaySet — Information about internet gateways.

  • requestId — The request ID.

    • Type: String

Examples#

c2-ec2 DescribeInternetGateways

c2-ec2 DescribeInternetGateways InternetGatewayId.1 <igw_id>

c2-ec2 DescribeInternetGateways Filter.1.Name vpc-id Filter.1.Value <vpc_id>