# VMware Engine API . projects . locations . networkPeerings . peeringRoutes

## Instance Methods

Close httplib2 connections.

Lists the network peering routes exchanged over a peering connection. NetworkPeering is a global resource and location can only be global.

Retrieves the next page of results.

### Method Details

`close()`

    Close httplib2 connections.

`list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)`

    Lists the network peering routes exchanged over a peering connection. NetworkPeering is a global resource and location can only be global.

    Args:
      parent: string, Required. The resource name of the network peering to retrieve peering routes from. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/global/networkPeerings/my-peering` (required)
      filter: string, A filter expression that matches resources returned in the response. Currently, only filtering on the `direction` field is supported. To return routes imported from the peer network, provide "direction=INCOMING". To return routes exported from the VMware Engine network, provide "direction=OUTGOING". Other filter expressions return an error.
      pageSize: integer, The maximum number of peering routes to return in one page. The service may return fewer than this value. The maximum value is coerced to 1000. The default value of this field is 500.
      pageToken: string, A page token, received from a previous `ListPeeringRoutes` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPeeringRoutes` must match the call that provided the page token.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response message for VmwareEngine.ListPeeringRoutes
      "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
      "peeringRoutes": [ # A list of peering routes.
        { # Exchanged network peering route.
          "destRange": "A String", # Output only. Destination range of the peering route in CIDR notation.
          "direction": "A String", # Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective: * Routes of direction `INCOMING` are imported from the peer network. * Routes of direction `OUTGOING` are exported from the intranet VPC network of the VMware Engine network.
          "imported": True or False, # Output only. True if the peering route has been imported from a peered VPC network; false otherwise. The import happens if the field `NetworkPeering.importCustomRoutes` is true for this network, `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and the import does not result in a route conflict.
          "nextHopRegion": "A String", # Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.
          "priority": "A String", # Output only. The priority of the peering route.
          "type": "A String", # Output only. Type of the route in the peer VPC network.
        },
      ],
    }

`list_next()`

    Retrieves the next page of results.

            Args:
              previous_request: The request for the previous page. (required)
              previous_response: The response from the request for the previous page. (required)

            Returns:
              A request object that you can call 'execute()' on to request the next
              page. Returns None if there are no more items in the collection.