dest_groups
Creates, updates, deletes, gets or lists a dest_groups
resource.
Overview
Name | dest_groups |
Type | Resource |
Id | google.iap.dest_groups |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Identifier for the TunnelDestGroup. Must be unique within the project and contain only lower case letters (a-z) and dashes (-). |
cidrs | array | Optional. Unordered list. List of CIDRs that this group applies to. |
fqdns | array | Optional. Unordered list. List of FQDNs that this group applies to. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | destGroupsId, locationsId, projectsId | Retrieves an existing TunnelDestGroup. |
list | SELECT | locationsId, projectsId | Lists the existing TunnelDestGroups. To group across all locations, use a - as the location ID. For example: /v1/projects/123/iap_tunnel/locations/-/destGroups |
create | INSERT | locationsId, projectsId | Creates a new TunnelDestGroup. |
delete | DELETE | destGroupsId, locationsId, projectsId | Deletes a TunnelDestGroup. |
patch | UPDATE | destGroupsId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.iap.dest_groups (
locationsId,
projectsId,
name,
cidrs,
fqdns
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ cidrs }}',
'{{ fqdns }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: cidrs
value:
- string
- name: fqdns
value:
- string
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 }}';