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

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

NameAccessible byRequired ParamsDescription
getSELECTdestGroupsId, locationsId, projectsIdRetrieves an existing TunnelDestGroup.
listSELECTlocationsId, projectsIdLists the existing TunnelDestGroups. To group across all locations, use a - as the location ID. For example: /v1/projects/123/iap_tunnel/locations/-/destGroups
createINSERTlocationsId, projectsIdCreates a new TunnelDestGroup.
deleteDELETEdestGroupsId, locationsId, projectsIdDeletes a TunnelDestGroup.
patchUPDATEdestGroupsId, locationsId, projectsIdUpdates a TunnelDestGroup.

SELECT examples

Lists the existing TunnelDestGroups. To group across all locations, use a - as the location ID. For example: /v1/projects/123/iap_tunnel/locations/-/destGroups

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

INSERT example

Use the following StackQL query and manifest file to create a new dest_groups resource.

/*+ create */
INSERT INTO google.iap.dest_groups (
locationsId,
projectsId,
name,
cidrs,
fqdns
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ cidrs }}',
'{{ fqdns }}'
;

UPDATE example

Updates a dest_groups resource.

/*+ update */
UPDATE google.iap.dest_groups
SET
name = '{{ name }}',
cidrs = '{{ cidrs }}',
fqdns = '{{ fqdns }}'
WHERE
destGroupsId = '{{ destGroupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified dest_groups resource.

/*+ delete */
DELETE FROM google.iap.dest_groups
WHERE destGroupsId = '{{ destGroupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';