---
title: "POST /global-networks/{globalNetworkId}/network-routes"
method: POST
path: "/global-networks/{globalNetworkId}/network-routes"
---

# POST /global-networks/{globalNetworkId}/network-routes

`POST /global-networks/{globalNetworkId}/network-routes`

Gets the network routes of the specified global network.

## Path parameters

- `globalNetworkId` string, required

## Request body

- object
  - `RouteTableIdentifier` object, required — Describes a route table.
    - `TransitGatewayRouteTableArn` string — The ARN of the transit gateway route table.
    - `CoreNetworkSegmentEdge` object — The segment edge in a core network.
      - `CoreNetworkId` string — The ID of a core network.
      - `SegmentName` string — The name of the segment edge.
      - `EdgeLocation` string — The Region where the segment edge is located.
  - `ExactCidrMatches` ConstrainedString[] — An exact CIDR block.
  - `LongestPrefixMatches` ConstrainedString[] — The most specific route that matches the traffic (longest prefix match).
  - `SubnetOfMatches` ConstrainedString[] — The routes with a subnet that match the specified CIDR filter.
  - `SupernetOfMatches` ConstrainedString[] — The routes with a CIDR that encompasses the CIDR filter. Example: If you specify 10.0.1.0/30, then the result returns 10.0.1.0/29.
  - `PrefixListIds` ConstrainedString[] — The IDs of the prefix lists.
  - `States` RouteState[] — The route states.
  - `Types` RouteType[] — The route types.
  - `DestinationFilters` object — Filter by route table destination. Possible Values: TRANSIT_GATEWAY_ATTACHMENT_ID, RESOURCE_ID, or RESOURCE_TYPE.

## Response `200`

Success

- GetNetworkRoutesResponse
  - `RouteTableArn` string — The ARN of the route table.
  - `CoreNetworkSegmentEdge` object — Describes a core network segment edge.
    - `CoreNetworkId` string — The ID of a core network.
    - `SegmentName` string — The name of the segment edge.
    - `EdgeLocation` string — The Region where the segment edge is located.
  - `RouteTableType` 'TRANSIT_GATEWAY_ROUTE_TABLE' | 'CORE_NETWORK_SEGMENT' — The route table type.
  - `RouteTableTimestamp` string, date-time — The route table creation time.
  - `NetworkRoutes` NetworkRoute[] — The network routes.
    - `DestinationCidrBlock` string — A unique identifier for the route, such as a CIDR block.
    - `Destinations` NetworkRouteDestination[] — The destinations.
      - `CoreNetworkAttachmentId` string — The ID of a core network attachment.
      - `TransitGatewayAttachmentId` string — The ID of the transit gateway attachment.
      - `SegmentName` string — The name of the segment.
      - `EdgeLocation` string — The edge location for the network destination.
      - `ResourceType` string — The resource type.
      - `ResourceId` string — The ID of the resource.
    - `PrefixListId` string — The ID of the prefix list.
    - `State` 'ACTIVE' | 'BLACKHOLE' — The route state. The possible values are <code>active</code> and <code>blackhole</code>.
    - `Type` 'PROPAGATED' | 'STATIC' — The route type. The possible values are <code>propagated</code> and <code>static</code>.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ResourceNotFoundException
- `483` — ThrottlingException
- `484` — InternalServerException

---

[API](https://skmtc.net/aws/apis/networkmanager.md) · [All operations](https://skmtc.net/aws/apis/networkmanager/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/networkmanager/versions/4ea0acef56bf/schema)
