Skip to main content

dest_groups

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

Overview

Namedest_groups
TypeResource
Idgoogle.iap.dest_groups

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Identifier for the TunnelDestGroup. Must be unique within the project and contain only lower case letters (a-z) and dashes (-).
cidrsarrayOptional. Unordered list. List of CIDRs that this group applies to.
fqdnsarrayOptional. Unordered list. List of FQDNs that this group applies to.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, destGroupsIdRetrieves an existing TunnelDestGroup.
listselectprojectsId, locationsIdpageSize, pageTokenLists the existing TunnelDestGroups. To group across all locations, use a - as the location ID. For example: /v1/projects/123/iap_tunnel/locations/-/destGroups
createinsertprojectsId, locationsIdtunnelDestGroupIdCreates a new TunnelDestGroup.
patchupdateprojectsId, locationsId, destGroupsIdupdateMaskUpdates a TunnelDestGroup.
deletedeleteprojectsId, locationsId, destGroupsIdDeletes a TunnelDestGroup.

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
destGroupsIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring
tunnelDestGroupIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Retrieves an existing TunnelDestGroup.

SELECT
name,
cidrs,
fqdns
FROM google.iap.dest_groups
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND destGroupsId = '{{ destGroupsId }}' -- required;

INSERT examples

Creates a new TunnelDestGroup.

INSERT INTO google.iap.dest_groups (
data__name,
data__cidrs,
data__fqdns,
projectsId,
locationsId,
tunnelDestGroupId
)
SELECT
'{{ name }}',
'{{ cidrs }}',
'{{ fqdns }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ tunnelDestGroupId }}'
RETURNING
name,
cidrs,
fqdns
;

UPDATE examples

Updates a TunnelDestGroup.

UPDATE google.iap.dest_groups
SET
data__name = '{{ name }}',
data__cidrs = '{{ cidrs }}',
data__fqdns = '{{ fqdns }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND destGroupsId = '{{ destGroupsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
cidrs,
fqdns;

DELETE examples

Deletes a TunnelDestGroup.

DELETE FROM google.iap.dest_groups
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND destGroupsId = '{{ destGroupsId }}' --required;