:doc:`NetworkManager <../../networkmanager>` / Client / get_network_routes

******************
get_network_routes
******************



.. py:method:: NetworkManager.Client.get_network_routes(**kwargs)

  

  Gets the network routes of the specified global network.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetNetworkRoutes>`_  


  **Request Syntax**
  ::

    response = client.get_network_routes(
        GlobalNetworkId='string',
        RouteTableIdentifier={
            'TransitGatewayRouteTableArn': 'string',
            'CoreNetworkSegmentEdge': {
                'CoreNetworkId': 'string',
                'SegmentName': 'string',
                'EdgeLocation': 'string'
            },
            'CoreNetworkNetworkFunctionGroup': {
                'CoreNetworkId': 'string',
                'NetworkFunctionGroupName': 'string',
                'EdgeLocation': 'string'
            }
        },
        ExactCidrMatches=[
            'string',
        ],
        LongestPrefixMatches=[
            'string',
        ],
        SubnetOfMatches=[
            'string',
        ],
        SupernetOfMatches=[
            'string',
        ],
        PrefixListIds=[
            'string',
        ],
        States=[
            'ACTIVE'|'BLACKHOLE',
        ],
        Types=[
            'PROPAGATED'|'STATIC',
        ],
        DestinationFilters={
            'string': [
                'string',
            ]
        }
    )
    
  :type GlobalNetworkId: string
  :param GlobalNetworkId: **[REQUIRED]** 

    The ID of the global network.

    

  
  :type RouteTableIdentifier: dict
  :param RouteTableIdentifier: **[REQUIRED]** 

    The ID of the route table.

    

  
    - **TransitGatewayRouteTableArn** *(string) --* 

      The ARN of the transit gateway route table for the attachment request. For example, ``"TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456"``.

      

    
    - **CoreNetworkSegmentEdge** *(dict) --* 

      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.

        

      
    
    - **CoreNetworkNetworkFunctionGroup** *(dict) --* 

      The route table identifier associated with the network function group.

      

    
      - **CoreNetworkId** *(string) --* 

        The ID of the core network.

        

      
      - **NetworkFunctionGroupName** *(string) --* 

        The network function group name.

        

      
      - **EdgeLocation** *(string) --* 

        The location for the core network edge.

        

      
    
  
  :type ExactCidrMatches: list
  :param ExactCidrMatches: 

    An exact CIDR block.

    

  
    - *(string) --* 

    

  :type LongestPrefixMatches: list
  :param LongestPrefixMatches: 

    The most specific route that matches the traffic (longest prefix match).

    

  
    - *(string) --* 

    

  :type SubnetOfMatches: list
  :param SubnetOfMatches: 

    The routes with a subnet that match the specified CIDR filter.

    

  
    - *(string) --* 

    

  :type SupernetOfMatches: list
  :param SupernetOfMatches: 

    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.

    

  
    - *(string) --* 

    

  :type PrefixListIds: list
  :param PrefixListIds: 

    The IDs of the prefix lists.

    

  
    - *(string) --* 

    

  :type States: list
  :param States: 

    The route states.

    

  
    - *(string) --* 

    

  :type Types: list
  :param Types: 

    The route types.

    

  
    - *(string) --* 

    

  :type DestinationFilters: dict
  :param DestinationFilters: 

    Filter by route table destination. Possible Values: TRANSIT_GATEWAY_ATTACHMENT_ID, RESOURCE_ID, or RESOURCE_TYPE.

    

  
    - *(string) --* 

    
      - *(list) --* 

      
        - *(string) --* 

        
    


  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'RouteTableArn': 'string',
          'CoreNetworkSegmentEdge': {
              'CoreNetworkId': 'string',
              'SegmentName': 'string',
              'EdgeLocation': 'string'
          },
          'RouteTableType': 'TRANSIT_GATEWAY_ROUTE_TABLE'|'CORE_NETWORK_SEGMENT'|'NETWORK_FUNCTION_GROUP',
          'RouteTableTimestamp': datetime(2015, 1, 1),
          'NetworkRoutes': [
              {
                  'DestinationCidrBlock': 'string',
                  'Destinations': [
                      {
                          'CoreNetworkAttachmentId': 'string',
                          'TransitGatewayAttachmentId': 'string',
                          'SegmentName': 'string',
                          'NetworkFunctionGroupName': 'string',
                          'EdgeLocation': 'string',
                          'ResourceType': 'string',
                          'ResourceId': 'string'
                      },
                  ],
                  'PrefixListId': 'string',
                  'State': 'ACTIVE'|'BLACKHOLE',
                  'Type': 'PROPAGATED'|'STATIC'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RouteTableArn** *(string) --* 

        The ARN of the route table.

        
      

      - **CoreNetworkSegmentEdge** *(dict) --* 

        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** *(string) --* 

        The route table type.

        
      

      - **RouteTableTimestamp** *(datetime) --* 

        The route table creation time.

        
      

      - **NetworkRoutes** *(list) --* 

        The network routes.

        
        

        - *(dict) --* 

          Describes a network route.

          
          

          - **DestinationCidrBlock** *(string) --* 

            A unique identifier for the route, such as a CIDR block.

            
          

          - **Destinations** *(list) --* 

            The destinations.

            
            

            - *(dict) --* 

              Describes the destination of a network route.

              
              

              - **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.

                
              

              - **NetworkFunctionGroupName** *(string) --* 

                The network function group name associated with the destination.

                
              

              - **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** *(string) --* 

            The route state. The possible values are ``active`` and ``blackhole``.

            
          

          - **Type** *(string) --* 

            The route type. The possible values are ``propagated`` and ``static``.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`NetworkManager.Client.exceptions.ValidationException`

  
  *   :py:class:`NetworkManager.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`NetworkManager.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`NetworkManager.Client.exceptions.ThrottlingException`

  
  *   :py:class:`NetworkManager.Client.exceptions.InternalServerException`

  