Skip to main content

security_profile_groups

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

Overview​

Namesecurity_profile_groups
TypeResource
Idgoogle.networksecurity.security_profile_groups

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringImmutable. Identifier. Name of the SecurityProfileGroup resource. It matches pattern projects|organizations/*/locations/{location}/securityProfileGroups/{security_profile_group}.
createTimestring (google-datetime)Output only. Resource creation timestamp.
customInterceptProfilestringOptional. Reference to a SecurityProfile with the CustomIntercept configuration.
customMirroringProfilestringOptional. Reference to a SecurityProfile with the CustomMirroring configuration.
dataPathIdstring (uint64)Output only. Identifier used by the data-path. Unique within {container, location}.
descriptionstringOptional. An optional description of the profile group. Max length 2048 characters.
etagstringOutput only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labelsobjectOptional. Labels as key value pairs.
threatPreventionProfilestringOptional. Reference to a SecurityProfile with the ThreatPrevention configuration.
updateTimestring (google-datetime)Output only. Last resource update timestamp.
urlFilteringProfilestringOptional. Reference to a SecurityProfile with the UrlFiltering configuration.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_locations_security_profile_groups_getselectorganizationsId, locationsId, securityProfileGroupsIdGets details of a single SecurityProfileGroup.
projects_locations_security_profile_groups_getselectprojectsId, locationsId, securityProfileGroupsIdGets details of a single SecurityProfileGroup.
organizations_locations_security_profile_groups_listselectorganizationsId, locationsIdpageSize, pageTokenLists SecurityProfileGroups in a given organization and location.
projects_locations_security_profile_groups_listselectprojectsId, locationsIdpageSize, pageTokenLists SecurityProfileGroups in a given project and location.
organizations_locations_security_profile_groups_createinsertorganizationsId, locationsIdsecurityProfileGroupIdCreates a new SecurityProfileGroup in a given organization and location.
projects_locations_security_profile_groups_createinsertprojectsId, locationsIdsecurityProfileGroupIdCreates a new SecurityProfileGroup in a given project and location.
organizations_locations_security_profile_groups_patchupdateorganizationsId, locationsId, securityProfileGroupsIdupdateMaskUpdates the parameters of a single SecurityProfileGroup.
projects_locations_security_profile_groups_patchupdateprojectsId, locationsId, securityProfileGroupsIdupdateMaskUpdates the parameters of a single SecurityProfileGroup.
organizations_locations_security_profile_groups_deletedeleteorganizationsId, locationsId, securityProfileGroupsIdetagDeletes a single SecurityProfileGroup.
projects_locations_security_profile_groups_deletedeleteprojectsId, locationsId, securityProfileGroupsIdetagDeletes a single SecurityProfileGroup.

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
locationsIdstring
organizationsIdstring
projectsIdstring
securityProfileGroupsIdstring
etagstring
pageSizeinteger (int32)
pageTokenstring
securityProfileGroupIdstring
updateMaskstring (google-fieldmask)

SELECT examples​

Gets details of a single SecurityProfileGroup.

SELECT
name,
createTime,
customInterceptProfile,
customMirroringProfile,
dataPathId,
description,
etag,
labels,
threatPreventionProfile,
updateTime,
urlFilteringProfile
FROM google.networksecurity.security_profile_groups
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND securityProfileGroupsId = '{{ securityProfileGroupsId }}' -- required
;

INSERT examples​

Creates a new SecurityProfileGroup in a given organization and location.

INSERT INTO google.networksecurity.security_profile_groups (
data__customInterceptProfile,
data__customMirroringProfile,
data__description,
data__labels,
data__name,
data__threatPreventionProfile,
data__urlFilteringProfile,
organizationsId,
locationsId,
securityProfileGroupId
)
SELECT
'{{ customInterceptProfile }}',
'{{ customMirroringProfile }}',
'{{ description }}',
'{{ labels }}',
'{{ name }}',
'{{ threatPreventionProfile }}',
'{{ urlFilteringProfile }}',
'{{ organizationsId }}',
'{{ locationsId }}',
'{{ securityProfileGroupId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples​

Updates the parameters of a single SecurityProfileGroup.

UPDATE google.networksecurity.security_profile_groups
SET
data__customInterceptProfile = '{{ customInterceptProfile }}',
data__customMirroringProfile = '{{ customMirroringProfile }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}',
data__threatPreventionProfile = '{{ threatPreventionProfile }}',
data__urlFilteringProfile = '{{ urlFilteringProfile }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND securityProfileGroupsId = '{{ securityProfileGroupsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples​

Deletes a single SecurityProfileGroup.

DELETE FROM google.networksecurity.security_profile_groups
WHERE organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND securityProfileGroupsId = '{{ securityProfileGroupsId }}' --required
AND etag = '{{ etag }}'
;