Skip to main content

address_groups

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

Overview

Nameaddress_groups
TypeResource
Idgoogle.networksecurity.address_groups

Fields

NameDatatypeDescription
column_anonstring

Methods

NameAccessible byRequired ParamsDescription
organizations_locations_address_groups_getSELECTaddressGroupsId, locationsId, organizationsIdGets details of a single address group.
organizations_locations_address_groups_listSELECTlocationsId, organizationsIdLists address groups in a given project and location.
projects_locations_address_groups_getSELECTaddressGroupsId, locationsId, projectsIdGets details of a single address group.
projects_locations_address_groups_listSELECTlocationsId, projectsIdLists address groups in a given project and location.
organizations_locations_address_groups_createINSERTlocationsId, organizationsIdCreates a new address group in a given project and location.
projects_locations_address_groups_createINSERTlocationsId, projectsIdCreates a new address group in a given project and location.
organizations_locations_address_groups_deleteDELETEaddressGroupsId, locationsId, organizationsIdDeletes an address group.
projects_locations_address_groups_deleteDELETEaddressGroupsId, locationsId, projectsIdDeletes a single address group.
organizations_locations_address_groups_patchUPDATEaddressGroupsId, locationsId, organizationsIdUpdates parameters of an address group.
projects_locations_address_groups_patchUPDATEaddressGroupsId, locationsId, projectsIdUpdates the parameters of a single address group.
organizations_locations_address_groups_clone_itemsEXECaddressGroupsId, locationsId, organizationsIdClones items from one address group to another.
projects_locations_address_groups_clone_itemsEXECaddressGroupsId, locationsId, projectsIdClones items from one address group to another.

SELECT examples

Lists address groups in a given project and location.

SELECT
column_anon
FROM google.networksecurity.address_groups
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.networksecurity.address_groups (
locationsId,
projectsId,
name,
description,
labels,
type,
items,
capacity,
purpose
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ type }}',
'{{ items }}',
'{{ capacity }}',
'{{ purpose }}'
;

UPDATE example

Updates a address_groups resource.

/*+ update */
UPDATE google.networksecurity.address_groups
SET
name = '{{ name }}',
description = '{{ description }}',
labels = '{{ labels }}',
type = '{{ type }}',
items = '{{ items }}',
capacity = '{{ capacity }}',
purpose = '{{ purpose }}'
WHERE
addressGroupsId = '{{ addressGroupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified address_groups resource.

/*+ delete */
DELETE FROM google.networksecurity.address_groups
WHERE addressGroupsId = '{{ addressGroupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';