DescribeTransitGateways#

Description#

Request to get the list of all existing transit gateways and their descriptions. One or more filters by transit gateway parameters can be applied.

Request Parameters#

  • Filter.N — One or more filters.

    • Type: List of Filter objects

    • Required: No

  • TransitGatewayIds.N — The IDs of transit gateways.

    • Type: Array of strings

    • Required: No

Supported Filters#

  • options.association-default-route-table-id — The ID of the default transit gateway route table.

  • options.default-route-table-association — Indicates that the transit gateway has a default transit gateway route table (enable | disable).

  • owner-id — The ID of the project.

  • state — The state of the transit gateway (available | deleting).

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

Response Elements#

  • requestId — The request ID

    • Type: String

  • transitGatewaySet — Information about the transit gateways.

Examples#

c2-ec2 DescribeTransitGateways

c2-ec2 DescribeTransitGateways Filter.0.Name state Filter.0.Value available

c2-ec2 DescribeTransitGateways Filter.0.Name options.association-default-route-table-id Filter.0.Value tgw-rtb-12345678