Skip to main content

hubs

Overview

Namehubs
TypeResource
Idgoogle.networkconnectivity.hubs

Fields

NameDatatypeDescription
namestringImmutable. The name of the hub. Hub names must be unique. They use the following form: projects/{project_number}/locations/global/hubs/{hub_id}
descriptionstringAn optional description of the hub.
routingVpcsarrayThe VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
spokeSummaryobjectSummarizes information about the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
routeTablesarrayOutput only. The route tables that belong to this hub. They use the following form: projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id} This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.
updateTimestringOutput only. The time the hub was last updated.
labelsobjectOptional labels in key:value format. For more information about labels, see Requirements for labels.
statestringOutput only. The current lifecycle state of this hub.
uniqueIdstringOutput only. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
createTimestringOutput only. The time the hub was created.

Methods

NameAccessible byRequired ParamsDescription
getSELECThubsId, projectsIdGets details about a Network Connectivity Center hub.
listSELECTprojectsIdLists the Network Connectivity Center hubs associated with a given project.
createINSERTprojectsIdCreates a new Network Connectivity Center hub in the specified project.
deleteDELETEhubsId, projectsIdDeletes a Network Connectivity Center hub.
_listEXECprojectsIdLists the Network Connectivity Center hubs associated with a given project.
patchEXEChubsId, projectsIdUpdates the description and/or labels of a Network Connectivity Center hub.