Skip to main content

groups

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

Overview

Namegroups
TypeResource
Idgoogle.networkconnectivity.groups

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. 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}
autoAcceptobjectOptional. The auto-accept setting for this group. (id: AutoAccept)
createTimestring (google-datetime)Output only. The time the group was created.
descriptionstringOptional. The description of the group.
labelsobjectOptional. Labels in key-value pair format. For more information about labels, see Requirements for labels.
routeTablestringOutput 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}
statestringOutput only. The current lifecycle state of this group.
uidstringOutput 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.
updateTimestring (google-datetime)Output only. The time the group was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, hubsId, groupsIdGets details about a Network Connectivity Center group.
listselectprojectsId, hubsIdpageSize, pageToken, filter, orderByLists groups in a given hub.
patchupdateprojectsId, hubsId, groupsIdupdateMask, requestIdUpdates the parameters of a Network Connectivity Center group.

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
groupsIdstring
hubsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details about a Network Connectivity Center group.

SELECT
name,
autoAccept,
createTime,
description,
labels,
routeTable,
state,
uid,
updateTime
FROM google.networkconnectivity.groups
WHERE projectsId = '{{ projectsId }}' -- required
AND hubsId = '{{ hubsId }}' -- required
AND groupsId = '{{ groupsId }}' -- required;

UPDATE examples

Updates the parameters of a Network Connectivity Center group.

UPDATE google.networkconnectivity.groups
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__autoAccept = '{{ autoAccept }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND hubsId = '{{ hubsId }}' --required
AND groupsId = '{{ groupsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;