Skip to main content

address_groups

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

Overview

Nameaddress_groups
TypeResource
Idgoogle.networksecurity.address_groups

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. Name of the AddressGroup resource. It matches pattern projects/*/locations/{location}/addressGroups/.
capacityinteger (int32)Required. Capacity of the Address Group
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
descriptionstringOptional. Free-text description of the resource.
itemsarrayOptional. List of items.
labelsobjectOptional. Set of label tags associated with the AddressGroup resource.
purposearrayOptional. List of supported purposes of the Address Group.
selfLinkstringOutput only. Server-defined fully-qualified URL for this resource.
typestringRequired. The type of the Address Group. Possible values are "IPv4" or "IPV6".
updateTimestring (google-datetime)Output only. The timestamp when the resource was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_address_groups_getselectprojectsId, locationsId, addressGroupsIdGets details of a single address group.
organizations_locations_address_groups_getselectorganizationsId, locationsId, addressGroupsIdGets details of a single address group.
projects_locations_address_groups_listselectprojectsId, locationsIdpageSize, pageToken, returnPartialSuccessLists address groups in a given project and location.
organizations_locations_address_groups_listselectorganizationsId, locationsIdpageSize, pageToken, returnPartialSuccessLists address groups in a given project and location.
projects_locations_address_groups_createinsertprojectsId, locationsIdaddressGroupId, requestIdCreates a new address group in a given project and location.
organizations_locations_address_groups_createinsertorganizationsId, locationsIdaddressGroupId, requestIdCreates a new address group in a given project and location.
projects_locations_address_groups_patchupdateprojectsId, locationsId, addressGroupsIdupdateMask, requestIdUpdates the parameters of a single address group.
organizations_locations_address_groups_patchupdateorganizationsId, locationsId, addressGroupsIdupdateMask, requestIdUpdates parameters of an address group.
projects_locations_address_groups_deletedeleteprojectsId, locationsId, addressGroupsIdrequestIdDeletes a single address group.
organizations_locations_address_groups_deletedeleteorganizationsId, locationsId, addressGroupsIdrequestIdDeletes an address group.
projects_locations_address_groups_clone_itemsexecprojectsId, locationsId, addressGroupsIdClones items from one address group to another.
organizations_locations_address_groups_clone_itemsexecorganizationsId, locationsId, addressGroupsIdClones items from one address group to another.

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
addressGroupsIdstring
locationsIdstring
organizationsIdstring
projectsIdstring
addressGroupIdstring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
returnPartialSuccessboolean
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single address group.

SELECT
name,
capacity,
createTime,
description,
items,
labels,
purpose,
selfLink,
type,
updateTime
FROM google.networksecurity.address_groups
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND addressGroupsId = '{{ addressGroupsId }}' -- required;

INSERT examples

Creates a new address group in a given project and location.

INSERT INTO google.networksecurity.address_groups (
data__name,
data__description,
data__labels,
data__type,
data__items,
data__capacity,
data__purpose,
projectsId,
locationsId,
addressGroupId,
requestId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ type }}',
'{{ items }}',
{{ capacity }},
'{{ purpose }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ addressGroupId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single address group.

UPDATE google.networksecurity.address_groups
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__type = '{{ type }}',
data__items = '{{ items }}',
data__capacity = {{ capacity }},
data__purpose = '{{ purpose }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND addressGroupsId = '{{ addressGroupsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single address group.

DELETE FROM google.networksecurity.address_groups
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND addressGroupsId = '{{ addressGroupsId }}' --required
AND requestId = '{{ requestId }}';

Lifecycle Methods

Clones items from one address group to another.

EXEC google.networksecurity.address_groups.projects_locations_address_groups_clone_items 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@addressGroupsId='{{ addressGroupsId }}' --required
@@json=
'{
"sourceAddressGroup": "{{ sourceAddressGroup }}",
"requestId": "{{ requestId }}"
}';