Page Summary
-
Lists the vehicles within a specified network using the
GETmethod and the provided URL. -
Allows users to specify the maximum number of vehicles to return and navigate through paginated results using query parameters.
-
The request body should be empty, and successful responses include an array of vehicles and a token for accessing further pages, if available.
Lists the Vehicles.
HTTP request
GET https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/vehicles
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent, which owns this collection of vehicles. Format: "networks/{network}" |
Query parameters
| Parameters | |
|---|---|
page |
Optional. The maximum number of vehicles to return. The service may return fewer than this value. If unspecified, at most 50 vehicles 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 vehicles.list method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"vehicles": [
{
object ( |
| Fields | |
|---|---|
vehicles[] |
The vehicles from the specified network. |
next |
A token, which can be sent as |