Page Summary
-
This page details the process for listing the lines within a specific network using the
lines.listmethod. -
The request requires specifying the parent network and allows for optional pagination using
pageSizeandpageTokenparameters. -
The response includes an array of
Lineobjects representing the lines within the network and a token for retrieving subsequent pages if available.
Lists the Lines.
HTTP request
GET https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/lines
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent, which owns this collection of lines. Format: "networks/{network}" |
Query parameters
| Parameters | |
|---|---|
page |
Optional. The maximum number of lines to return. The service may return fewer than this value. If unspecified, at most 50 lines will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
Request body
The request body must be empty.
Response body
The response message for lines.list method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"lines": [
{
object ( |
| Fields | |
|---|---|
lines[] |
The lines from the specified network. |
next |
A token, which can be sent as |