Method: networks.hubs.list
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
GET https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/hubs
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The parent, which owns this collection of hubs. Format: "networks/{network}"
|
Query parameters
Parameters |
pageSize |
integer
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.
|
pageToken |
string
Optional. A page token, received from a previous hubs.list call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to hubs.list must match the call that provided the page token.
|
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 (Hub )
}
],
"nextPageToken": string
} |
Fields |
hubs[] |
object (Hub )
The hubs from the specified network.
|
nextPageToken |
string
A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[[["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."]]],["This document outlines the process for listing hubs within a network using an HTTP GET request. The request URL requires a `parent` parameter specifying the network. Optional query parameters, `pageSize` and `pageToken`, control the number of hubs returned and pagination. The request body must be empty. A successful response includes a list of `hubs` and an optional `nextPageToken` for retrieving additional pages of hub listings.\n"]]