Page Summary
-
Lists all hubs within a given network.
-
Allows filtering by page size and using pagination for large datasets.
-
Returns a list of hubs and a token for retrieving subsequent pages if available.
-
Requires specifying the network as a parent resource in the request URL.
-
Request body should be empty.
Lists the Hubs.
HTTP request
GET https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/hubs
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent, which owns this collection of hubs. Format: "networks/{network}" |
Query parameters
| Parameters | |
|---|---|
page |
Optional. The maximum number of hubs to return. The service may return fewer than this value. If unspecified, at most 50 hubs 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 hubs.list method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"hubs": [
{
object ( |
| Fields | |
|---|---|
hubs[] |
The hubs from the specified network. |
next |
A token, which can be sent as |