Amazon EC2 Ec2 Transit Gateway Route API

The Ec2 Transit Gateway Route API from Amazon EC2 — 4 operation(s) for ec2 transit gateway route.

Business capability
IT Infrastructure Management BC-600.50

Operations 4

POST /?Action=CreateTransitGatewayRoute Create Transit Gateway Route #
POST /?Action=DeleteTransitGatewayRoute Delete Transit Gateway Route #
POST /?Action=ExportTransitGatewayRoutes Export Transit Gateway Routes #
POST /?Action=SearchTransitGatewayRoutes Search Transit Gateway Routes #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-ec2:amazon-ec2-transit-gateway-route-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-ec2-transit-gateway-route-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Amazon Elastic Compute Cloud Transit Gateway Route API
  version: '2016-11-15'
  description: Generated from AWS's published Smithy model for Amazon Elastic Compute Cloud. 4 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://ec2.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
tags:
- name: Transit Gateway Route
paths:
  /?Action=CreateTransitGatewayRoute:
    post:
      operationId: CreateTransitGatewayRoute
      summary: Create Transit Gateway Route
      description: Creates a static route for the specified transit gateway route table.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/CreateTransitGatewayRouteResult'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: CreateTransitGatewayRoute
                  Version:
                    type: string
                    const: '2016-11-15'
              - $ref: '#/components/schemas/CreateTransitGatewayRouteRequest'
      tags:
      - Transit Gateway Route
  /?Action=DeleteTransitGatewayRoute:
    post:
      operationId: DeleteTransitGatewayRoute
      summary: Delete Transit Gateway Route
      description: Deletes the specified route from the specified transit gateway route table.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DeleteTransitGatewayRouteResult'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DeleteTransitGatewayRoute
                  Version:
                    type: string
                    const: '2016-11-15'
              - $ref: '#/components/schemas/DeleteTransitGatewayRouteRequest'
      tags:
      - Transit Gateway Route
  /?Action=ExportTransitGatewayRoutes:
    post:
      operationId: ExportTransitGatewayRoutes
      summary: Export Transit Gateway Routes
      description: Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range. The routes are saved to the specified bucket in a JSON file. For more information, see Export route tables to Amazon S3 in the Amazon Web Services Transit Gateways Guide.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ExportTransitGatewayRoutesResult'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: ExportTransitGatewayRoutes
                  Version:
                    type: string
                    const: '2016-11-15'
              - $ref: '#/components/schemas/ExportTransitGatewayRoutesRequest'
      tags:
      - Transit Gateway Route
  /?Action=SearchTransitGatewayRoutes:
    post:
      operationId: SearchTransitGatewayRoutes
      summary: Search Transit Gateway Routes
      description: Searches for routes in the specified transit gateway route table.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/SearchTransitGatewayRoutesResult'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: SearchTransitGatewayRoutes
                  Version:
                    type: string
                    const: '2016-11-15'
              - $ref: '#/components/schemas/SearchTransitGatewayRoutesRequest'
      tags:
      - Transit Gateway Route
components:
  schemas:
    CreateTransitGatewayRouteRequest:
      type: object
      properties:
        DestinationCidrBlock:
          type: string
          description: The CIDR range used for destination matches. Routing decisions are based on the most specific match.
        TransitGatewayRouteTableId:
          type: string
          description: The ID of the transit gateway route table.
        TransitGatewayAttachmentId:
          type: string
          description: The ID of the attachment.
        Blackhole:
          type: boolean
          description: Indicates whether to drop traffic that matches this route.
        DryRun:
          type: boolean
          description: Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      required:
      - DestinationCidrBlock
      - TransitGatewayRouteTableId
    DeleteTransitGatewayRouteRequest:
      type: object
      properties:
        TransitGatewayRouteTableId:
          type: string
          description: The ID of the transit gateway route table.
        DestinationCidrBlock:
          type: string
          description: The CIDR range for the route. This must match the CIDR for the route exactly.
        DryRun:
          type: boolean
          description: Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      required:
      - TransitGatewayRouteTableId
      - DestinationCidrBlock
    CreateTransitGatewayRouteResult:
      type: object
      properties:
        Route:
          $ref: '#/components/schemas/TransitGatewayRoute'
    SearchTransitGatewayRoutesRequest:
      type: object
      properties:
        TransitGatewayRouteTableId:
          type: string
          description: The ID of the transit gateway route table.
        Filters:
          type: array
          items:
            $ref: '#/components/schemas/Filter'
          description: 'One or more filters. The possible values are: attachment.transit-gateway-attachment-id- The id of the transit gateway attachment. attachment.resource-id - The resource id of the transit gateway attachment. attachment.resource-type - The attachment resource type. Valid values are vpc | vpn | direct-connect-gateway | peering | connect. prefix-list-id - The ID of the prefix list. route-search.exact-match - The exact match of the specified filter. route-search.longest-prefix-match - The longest prefix that matches the route. route-search.subnet-of-match - The routes with a subnet that match the sp'
        MaxResults:
          type: integer
          description: The maximum number of routes to return. If a value is not provided, the default is 1000.
        DryRun:
          type: boolean
          description: Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
        NextToken:
          type: string
          description: The token for the next page of results.
      required:
      - TransitGatewayRouteTableId
      - Filters
    DeleteTransitGatewayRouteResult:
      type: object
      properties:
        Route:
          $ref: '#/components/schemas/TransitGatewayRoute'
    TransitGatewayRouteAttachment:
      type: object
      properties:
        ResourceId:
          type: string
          description: The ID of the resource.
        TransitGatewayAttachmentId:
          type: string
          description: The ID of the attachment.
        ResourceType:
          type: string
          enum:
          - vpc
          - vpn
          - vpn-concentrator
          - direct-connect-gateway
          - connect
          - peering
          - tgw-peering
          - network-function
          - client-vpn
          description: The resource type. Note that the tgw-peering resource type has been deprecated.
    SearchTransitGatewayRoutesResult:
      type: object
      properties:
        Routes:
          type: array
          items:
            $ref: '#/components/schemas/TransitGatewayRoute'
          description: Information about the routes.
        AdditionalRoutesAvailable:
          type: boolean
          description: Indicates whether there are additional routes available.
        NextToken:
          type: string
          description: The token to use to retrieve the next page of results. This value is null when there are no more results to return.
    ExportTransitGatewayRoutesResult:
      type: object
      properties:
        S3Location:
          type: string
          description: The URL of the exported file in Amazon S3. For example, s3://bucket_name/VPCTransitGateway/TransitGatewayRouteTables/file_name.
    ExportTransitGatewayRoutesRequest:
      type: object
      properties:
        TransitGatewayRouteTableId:
          type: string
          description: The ID of the route table.
        Filters:
          type: array
          items:
            $ref: '#/components/schemas/Filter'
          description: 'One or more filters. The possible values are: attachment.transit-gateway-attachment-id - The id of the transit gateway attachment. attachment.resource-id - The resource id of the transit gateway attachment. route-search.exact-match - The exact match of the specified filter. route-search.longest-prefix-match - The longest prefix that matches the route. route-search.subnet-of-match - The routes with a subnet that match the specified CIDR filter. route-search.supernet-of-match - The routes with a CIDR that encompass the CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31 routes in y'
        S3Bucket:
          type: string
          description: The name of the S3 bucket.
        DryRun:
          type: boolean
          description: Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      required:
      - TransitGatewayRouteTableId
      - S3Bucket
    Filter:
      type: object
      properties:
        Name:
          type: string
          description: The name of the filter. Filter names are case-sensitive.
        Values:
          type: array
          items:
            type: string
          description: The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.
    TransitGatewayRoute:
      type: object
      properties:
        DestinationCidrBlock:
          type: string
          description: The CIDR block used for destination matches.
        PrefixListId:
          type: string
          description: The ID of the prefix list used for destination matches.
        TransitGatewayRouteTableAnnouncementId:
          type: string
          description: The ID of the transit gateway route table announcement.
        TransitGatewayAttachments:
          type: array
          items:
            $ref: '#/components/schemas/TransitGatewayRouteAttachment'
          description: The attachments.
        Type:
          type: string
          enum:
          - static
          - propagated
          - system
          description: The route type.
        State:
          type: string
          enum:
          - pending
          - active
          - blackhole
          - deleting
          - deleted
          description: The state of the route.
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: ec2
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/582e55931c45b944739742a2c1620b6026dd2d13/models/ec2/service/2016-11-15/ec2-2016-11-15.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)