Skip to main content

Transit Gateway (TGW)

The Transit Gateway API lets you create, view, and manage transit gateways, attachments, and routing resources. For service features, see the Transit Gateway service documentation.

APIs by resource​

Select an API to view its request parameters, request body, and response format.

tip

Enter an API name or resource name (for example, Create TGW attachment or route table) in the search bar in the left sidebar to find the API you need more easily.

Attachments​

Manages Transit Gateway attachments.

APIMethodPath
Create TGW attachmentPOST/api/v1/attachments
Delete TGW attachmentDELETE/api/v1/attachments/{attachment_id}
Get TGW attachmentGET/api/v1/attachments/{attachment_id}
List TGW attachmentsGET/api/v1/attachments
Reject TGW attachmentPUT/api/v1/attachments/{attachment_id}/reject
Update TGW attachmentPUT/api/v1/attachments/{attachment_id}

Route tables​

Manages route tables, routes, and associations.

APIMethodPath
Create TGW routePOST/api/v1/route-tables/{route_table_id}/routes
Create TGW route tablePOST/api/v1/route-tables
Create TGW route table associationPOST/api/v1/route-tables/{route_table_id}/associations
Delete TGW routeDELETE/api/v1/route-tables/{route_table_id}/routes/{route_id}
Delete TGW route tableDELETE/api/v1/route-tables/{route_table_id}
Delete TGW route table associationDELETE/api/v1/route-tables/{route_table_id}/associations/{association_id}
Get TGW route tableGET/api/v1/route-tables/{route_table_id}
List TGW route table associationsGET/api/v1/route-tables/{route_table_id}/associations
List TGW route tablesGET/api/v1/route-tables
List TGW routesGET/api/v1/route-tables/{route_table_id}/routes
Update TGW routePUT/api/v1/route-tables/{route_table_id}/routes/{route_id}
Update TGW route tablePUT/api/v1/route-tables/{route_table_id}

Transit Gateways​

Manages Transit Gateway configuration and sharing.

APIMethodPath
Approve TGW attachmentPUT/api/v1/attachments/{attachment_id}/approve
Create transit gatewayPOST/api/v1/tgws
Delete transit gatewayDELETE/api/v1/tgws/{tgw_id}
Get transit gatewayGET/api/v1/tgws/{tgw_id}
List TGW shared projectsGET/api/v1/tgws/{tgw_id}/projects
List transit gatewaysGET/api/v1/tgws
Share transit gatewayPOST/api/v1/tgws/{tgw_id}/projects/{target_project_id}
Unshare transit gatewayDELETE/api/v1/tgws/{tgw_id}/projects/{target_project_id}
Update transit gatewayPUT/api/v1/tgws/{tgw_id}