spokes
Creates, updates, deletes, gets or lists a spokes resource.
Overview
| Name | spokes |
| Type | Resource |
| Id | google.networkconnectivity.spokes |
Fields
The following fields are returned by SELECT queries:
- get
- list_spokes
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id} |
createTime | string (google-datetime) | Output only. The time the spoke was created. |
description | string | Optional. An optional description of the spoke. |
etag | string | Optional. 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. |
fieldPathsPendingUpdate | array | Optional. The list of fields waiting for hub administration's approval. |
group | string | Optional. The name of the group that this spoke is associated with. |
hub | string | Immutable. The name of the hub that this spoke is attached to. |
labels | object | Optional labels in key-value pair format. For more information about labels, see Requirements for labels. |
linkedInterconnectAttachments | object | Optional. VLAN attachments that are associated with the spoke. (id: LinkedInterconnectAttachments) |
linkedProducerVpcNetwork | object | Optional. The linked producer VPC that is associated with the spoke. (id: LinkedProducerVpcNetwork) |
linkedRouterApplianceInstances | object | Optional. Router appliance instances that are associated with the spoke. (id: LinkedRouterApplianceInstances) |
linkedVpcNetwork | object | Optional. VPC network that is associated with the spoke. (id: LinkedVpcNetwork) |
linkedVpnTunnels | object | Optional. VPN tunnels that are associated with the spoke. (id: LinkedVpnTunnels) |
reasons | array | Output only. The reasons for current state of the spoke. |
spokeType | string | Output only. The type of resource associated with the spoke. |
state | string | Output only. The current lifecycle state of this spoke. |
uniqueId | string | Output 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. |
updateTime | string (google-datetime) | Output only. The time the spoke was last updated. |
| Name | Datatype | Description |
|---|---|---|
name | string | Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id} |
createTime | string (google-datetime) | Output only. The time the spoke was created. |
description | string | Optional. An optional description of the spoke. |
etag | string | Optional. 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. |
fieldPathsPendingUpdate | array | Optional. The list of fields waiting for hub administration's approval. |
group | string | Optional. The name of the group that this spoke is associated with. |
hub | string | Immutable. The name of the hub that this spoke is attached to. |
labels | object | Optional labels in key-value pair format. For more information about labels, see Requirements for labels. |
linkedInterconnectAttachments | object | Optional. VLAN attachments that are associated with the spoke. (id: LinkedInterconnectAttachments) |
linkedProducerVpcNetwork | object | Optional. The linked producer VPC that is associated with the spoke. (id: LinkedProducerVpcNetwork) |
linkedRouterApplianceInstances | object | Optional. Router appliance instances that are associated with the spoke. (id: LinkedRouterApplianceInstances) |
linkedVpcNetwork | object | Optional. VPC network that is associated with the spoke. (id: LinkedVpcNetwork) |
linkedVpnTunnels | object | Optional. VPN tunnels that are associated with the spoke. (id: LinkedVpnTunnels) |
reasons | array | Output only. The reasons for current state of the spoke. |
spokeType | string | Output only. The type of resource associated with the spoke. |
state | string | Output only. The current lifecycle state of this spoke. |
uniqueId | string | Output 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. |
updateTime | string (google-datetime) | Output only. The time the spoke was last updated. |
| Name | Datatype | Description |
|---|---|---|
name | string | Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id} |
createTime | string (google-datetime) | Output only. The time the spoke was created. |
description | string | Optional. An optional description of the spoke. |
etag | string | Optional. 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. |
fieldPathsPendingUpdate | array | Optional. The list of fields waiting for hub administration's approval. |
group | string | Optional. The name of the group that this spoke is associated with. |
hub | string | Immutable. The name of the hub that this spoke is attached to. |
labels | object | Optional labels in key-value pair format. For more information about labels, see Requirements for labels. |
linkedInterconnectAttachments | object | Optional. VLAN attachments that are associated with the spoke. (id: LinkedInterconnectAttachments) |
linkedProducerVpcNetwork | object | Optional. The linked producer VPC that is associated with the spoke. (id: LinkedProducerVpcNetwork) |
linkedRouterApplianceInstances | object | Optional. Router appliance instances that are associated with the spoke. (id: LinkedRouterApplianceInstances) |
linkedVpcNetwork | object | Optional. VPC network that is associated with the spoke. (id: LinkedVpcNetwork) |
linkedVpnTunnels | object | Optional. VPN tunnels that are associated with the spoke. (id: LinkedVpnTunnels) |
reasons | array | Output only. The reasons for current state of the spoke. |
spokeType | string | Output only. The type of resource associated with the spoke. |
state | string | Output only. The current lifecycle state of this spoke. |
uniqueId | string | Output 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. |
updateTime | string (google-datetime) | Output only. The time the spoke was last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, spokesId | Gets details about a Network Connectivity Center spoke. | |
list_spokes | select | projectsId, hubsId | filter, spokeLocations, view, orderBy, pageSize, pageToken | Lists 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. |
list | select | projectsId, locationsId | filter, pageSize, orderBy, pageToken | Lists the Network Connectivity Center spokes in a specified project and location. |
create | insert | projectsId, locationsId | requestId, spokeId | Creates a Network Connectivity Center spoke. |
patch | update | projectsId, locationsId, spokesId | requestId, updateMask | Updates the parameters of a Network Connectivity Center spoke. |
delete | delete | projectsId, locationsId, spokesId | requestId | Deletes 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.
| Name | Datatype | Description |
|---|---|---|
hubsId | string | |
locationsId | string | |
projectsId | string | |
spokesId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
spokeId | string | |
spokeLocations | string | |
updateMask | string (google-fieldmask) | |
view | string |
SELECT examples
- get
- list_spokes
- list
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
;
Lists 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.
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 hubsId = '{{ hubsId }}' -- required
AND filter = '{{ filter }}'
AND spokeLocations = '{{ spokeLocations }}'
AND view = '{{ view }}'
AND orderBy = '{{ orderBy }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
Lists the Network Connectivity Center spokes in a specified project and location.
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 filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND orderBy = '{{ orderBy }}'
AND pageToken = '{{ pageToken }}'
;
INSERT examples
- create
- Manifest
Creates a Network Connectivity Center spoke.
INSERT INTO google.networkconnectivity.spokes (
data__etag,
data__linkedVpcNetwork,
data__description,
data__fieldPathsPendingUpdate,
data__linkedInterconnectAttachments,
data__linkedProducerVpcNetwork,
data__name,
data__linkedVpnTunnels,
data__hub,
data__linkedRouterApplianceInstances,
data__group,
data__labels,
projectsId,
locationsId,
requestId,
spokeId
)
SELECT
'{{ etag }}',
'{{ linkedVpcNetwork }}',
'{{ description }}',
'{{ fieldPathsPendingUpdate }}',
'{{ linkedInterconnectAttachments }}',
'{{ linkedProducerVpcNetwork }}',
'{{ name }}',
'{{ linkedVpnTunnels }}',
'{{ hub }}',
'{{ linkedRouterApplianceInstances }}',
'{{ group }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ requestId }}',
'{{ spokeId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: spokes
props:
- name: projectsId
value: string
description: Required parameter for the spokes resource.
- name: locationsId
value: string
description: Required parameter for the spokes resource.
- name: etag
value: string
description: >
Optional. 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.
- name: linkedVpcNetwork
value: object
description: >
Optional. VPC network that is associated with the spoke.
- name: description
value: string
description: >
Optional. An optional description of the spoke.
- name: fieldPathsPendingUpdate
value: array
description: >
Optional. The list of fields waiting for hub administration's approval.
- name: linkedInterconnectAttachments
value: object
description: >
Optional. VLAN attachments that are associated with the spoke.
- name: linkedProducerVpcNetwork
value: object
description: >
Optional. The linked producer VPC that is associated with the spoke.
- name: name
value: string
description: >
Immutable. The name of the spoke. Spoke names must be unique. They use the following form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}`
- name: linkedVpnTunnels
value: object
description: >
Optional. VPN tunnels that are associated with the spoke.
- name: hub
value: string
description: >
Immutable. The name of the hub that this spoke is attached to.
- name: linkedRouterApplianceInstances
value: object
description: >
Optional. Router appliance instances that are associated with the spoke.
- name: group
value: string
description: >
Optional. The name of the group that this spoke is associated with.
- name: labels
value: object
description: >
Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
- name: requestId
value: string
- name: spokeId
value: string
UPDATE examples
- patch
Updates the parameters of a Network Connectivity Center spoke.
UPDATE google.networkconnectivity.spokes
SET
data__etag = '{{ etag }}',
data__linkedVpcNetwork = '{{ linkedVpcNetwork }}',
data__description = '{{ description }}',
data__fieldPathsPendingUpdate = '{{ fieldPathsPendingUpdate }}',
data__linkedInterconnectAttachments = '{{ linkedInterconnectAttachments }}',
data__linkedProducerVpcNetwork = '{{ linkedProducerVpcNetwork }}',
data__name = '{{ name }}',
data__linkedVpnTunnels = '{{ linkedVpnTunnels }}',
data__hub = '{{ hub }}',
data__linkedRouterApplianceInstances = '{{ linkedRouterApplianceInstances }}',
data__group = '{{ group }}',
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND spokesId = '{{ spokesId }}' --required
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE examples
- delete
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 }}'
;