SearchTransitGatewayRoutes
In this article:
SearchTransitGatewayRoutes#
Description#
Request to get the list of all routes of a transit gateway route table and their descriptions. One or more filters by route parameters can be applied.
Request Parameters#
Filter.N — One or more filters.
Type: List of Filter objects
Required: Yes
TransitGatewayRouteTableId — The ID of the transit gateway route table.
Type: String
Required: Yes
Supported Filters#
attachment.transit-gateway-attachment-id — The ID of the transit gateway attachment.
attachment.resource-id — The resource ID.
attachment.resource-type — The resource type (
vpc
).state — The state of the route (
active | blackhole
).type — The type of the route (
static
).
Response Elements#
requestId — The request ID
Type: String
routeSet — Information about routes in the transit gateway route table.
Type: List of TransitGatewayRoute objects
Examples#
c2-ec2 SearchTransitGatewayRoutes TransitGatewayRouteTableId tgw-rtb-12345678 Filter.0.Name attachment.resource-id Filter.0.Value vpc-12345678
c2-ec2 SearchTransitGatewayRoutes TransitGatewayRouteTableId tgw-rtb-12345678 Filter.0.Name attachment.state Filter.0.Value blackhole