groups
Creates, updates, deletes, gets or lists a groups
resource.
Overview
Name | groups |
Type | Resource |
Id | google.networkconnectivity.groups |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The name of the group. Group names must be unique. They use the following form: projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id} |
description | string | Optional. The description of the group. |
autoAccept | object | The auto-accept setting for a group controls whether proposed spokes are automatically attached to the hub. If auto-accept is enabled, the spoke immediately is attached to the hub and becomes part of the group. In this case, the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke goes to the INACTIVE state, and it must be reviewed and accepted by a hub administrator. |
createTime | string | Output only. The time the group was created. |
labels | object | Optional. Labels in key-value pair format. For more information about labels, see Requirements for labels. |
routeTable | string | Output only. The name of the route table that corresponds to this group. They use the following form: projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id} |
state | string | Output only. The current lifecycle state of this group. |
uid | string | Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different unique_id. |
updateTime | string | Output only. The time the group was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | groupsId, hubsId, projectsId | Gets details about a Network Connectivity Center group. |
list | SELECT | hubsId, projectsId | Lists groups in a given hub. |
patch | UPDATE | groupsId, hubsId, projectsId | Updates the parameters of a Network Connectivity Center group. |
SELECT
examples
Lists groups in a given hub.
SELECT
name,
description,
autoAccept,
createTime,
labels,
routeTable,
state,
uid,
updateTime
FROM google.networkconnectivity.groups
WHERE hubsId = '{{ hubsId }}'
AND projectsId = '{{ projectsId }}';
UPDATE
example
Updates a groups
resource.
/*+ update */
UPDATE google.networkconnectivity.groups
SET
name = '{{ name }}',
labels = '{{ labels }}',
description = '{{ description }}',
autoAccept = '{{ autoAccept }}'
WHERE
groupsId = '{{ groupsId }}'
AND hubsId = '{{ hubsId }}'
AND projectsId = '{{ projectsId }}';