Method: networks.hubs.create
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/hubs
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The parent resource where this hub will be created. Format: "networks/{network}"
|
Query parameters
Parameters |
hubId |
string
Required. Identifier of the hub to create.
|
Request body
The request body contains an instance of Hub
.
Response body
If successful, the response body contains a newly created instance of Hub
.
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."],[[["\u003cp\u003eCreates a new Hub within a specified network using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires a parent network and a unique hub ID for creation.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a Hub object with configuration details.\u003c/p\u003e\n"],["\u003cp\u003eIf successful, the response includes the newly created Hub object with assigned values.\u003c/p\u003e\n"]]],["This outlines the creation of a \"Hub\" resource via a `POST` HTTP request to a specific URL. The URL requires a `parent` parameter, specifying the network where the hub will reside, using the format \"networks/{network}\". A required `hubId` query parameter uniquely identifies the new hub. The request body contains the details for creating the hub instance, and a successful response returns the newly created hub instance.\n"],null,["# Method: networks.hubs.create\n\nCreates a Hub.\n\n### HTTP request\n\n`POST https://middlemileoptimization.googleapis.com/v1/{parent=networks/*}/hubs`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent resource where this hub will be created. Format: \"networks/{network}\" |\n\n### Query parameters\n\n| Parameters ||\n|-----------|-----------------------------------------------------|\n| `hub``Id` | `string` Required. Identifier of the hub to create. |\n\n### Request body\n\nThe request body contains an instance of [Hub](/optimization/middlemileoptimization/reference/rest/v1/networks.hubs#Hub).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Hub](/optimization/middlemileoptimization/reference/rest/v1/networks.hubs#Hub)."]]