Skip to main content

spokes

Creates, updates, deletes, gets or lists a spokes resource.

Overview

Namespokes
TypeResource
Idgoogle.networkconnectivity.spokes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}
createTimestring (google-datetime)Output only. The time the spoke was created.
descriptionstringOptional. An optional description of the spoke.
etagstringOptional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
fieldPathsPendingUpdatearrayOptional. The list of fields waiting for hub administration's approval.
groupstringOptional. The name of the group that this spoke is associated with.
hubstringImmutable. The name of the hub that this spoke is attached to.
labelsobjectOptional labels in key-value pair format. For more information about labels, see Requirements for labels.
linkedInterconnectAttachmentsobjectOptional. VLAN attachments that are associated with the spoke. (id: LinkedInterconnectAttachments)
linkedProducerVpcNetworkobjectOptional. The linked producer VPC that is associated with the spoke. (id: LinkedProducerVpcNetwork)
linkedRouterApplianceInstancesobjectOptional. Router appliance instances that are associated with the spoke. (id: LinkedRouterApplianceInstances)
linkedVpcNetworkobjectOptional. VPC network that is associated with the spoke. (id: LinkedVpcNetwork)
linkedVpnTunnelsobjectOptional. VPN tunnels that are associated with the spoke. (id: LinkedVpnTunnels)
reasonsarrayOutput only. The reasons for current state of the spoke.
spokeTypestringOutput only. The type of resource associated with the spoke.
statestringOutput only. The current lifecycle state of this spoke.
uniqueIdstringOutput only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different unique_id.
updateTimestring (google-datetime)Output only. The time the spoke was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, spokesIdGets details about a Network Connectivity Center spoke.
list_spokesselectprojectsId, hubsIdspokeLocations, pageSize, pageToken, filter, orderBy, viewLists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists the Network Connectivity Center spokes in a specified project and location.
createinsertprojectsId, locationsIdspokeId, requestIdCreates a Network Connectivity Center spoke.
patchupdateprojectsId, locationsId, spokesIdupdateMask, requestIdUpdates the parameters of a Network Connectivity Center spoke.
deletedeleteprojectsId, locationsId, spokesIdrequestIdDeletes a Network Connectivity Center spoke.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hubsIdstring
locationsIdstring
projectsIdstring
spokesIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
spokeIdstring
spokeLocationsstring
updateMaskstring (google-fieldmask)
viewstring

SELECT examples

Gets details about a Network Connectivity Center spoke.

SELECT
name,
createTime,
description,
etag,
fieldPathsPendingUpdate,
group,
hub,
labels,
linkedInterconnectAttachments,
linkedProducerVpcNetwork,
linkedRouterApplianceInstances,
linkedVpcNetwork,
linkedVpnTunnels,
reasons,
spokeType,
state,
uniqueId,
updateTime
FROM google.networkconnectivity.spokes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND spokesId = '{{ spokesId }}' -- required;

INSERT examples

Creates a Network Connectivity Center spoke.

INSERT INTO google.networkconnectivity.spokes (
data__name,
data__labels,
data__description,
data__hub,
data__group,
data__linkedVpnTunnels,
data__linkedInterconnectAttachments,
data__linkedRouterApplianceInstances,
data__linkedVpcNetwork,
data__linkedProducerVpcNetwork,
data__etag,
data__fieldPathsPendingUpdate,
projectsId,
locationsId,
spokeId,
requestId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ hub }}',
'{{ group }}',
'{{ linkedVpnTunnels }}',
'{{ linkedInterconnectAttachments }}',
'{{ linkedRouterApplianceInstances }}',
'{{ linkedVpcNetwork }}',
'{{ linkedProducerVpcNetwork }}',
'{{ etag }}',
'{{ fieldPathsPendingUpdate }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ spokeId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a Network Connectivity Center spoke.

UPDATE google.networkconnectivity.spokes
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__hub = '{{ hub }}',
data__group = '{{ group }}',
data__linkedVpnTunnels = '{{ linkedVpnTunnels }}',
data__linkedInterconnectAttachments = '{{ linkedInterconnectAttachments }}',
data__linkedRouterApplianceInstances = '{{ linkedRouterApplianceInstances }}',
data__linkedVpcNetwork = '{{ linkedVpcNetwork }}',
data__linkedProducerVpcNetwork = '{{ linkedProducerVpcNetwork }}',
data__etag = '{{ etag }}',
data__fieldPathsPendingUpdate = '{{ fieldPathsPendingUpdate }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND spokesId = '{{ spokesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a Network Connectivity Center spoke.

DELETE FROM google.networkconnectivity.spokes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND spokesId = '{{ spokesId }}' --required
AND requestId = '{{ requestId }}';