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

NameDatatypeDescription
namestringImmutable. Identifier. Name of the SecurityProfileGroup resource. It matches pattern `projects
descriptionstringOptional. An optional description of the profile group. Max length 2048 characters.
createTimestringOutput only. Resource creation timestamp.
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.
updateTimestringOutput only. Last resource update timestamp.

Methods

NameAccessible byRequired ParamsDescription
organizations_locations_security_profile_groups_getSELECTlocationsId, organizationsId, securityProfileGroupsIdGets details of a single SecurityProfileGroup.
organizations_locations_security_profile_groups_listSELECTlocationsId, organizationsIdLists SecurityProfileGroups in a given organization and location.
organizations_locations_security_profile_groups_createINSERTlocationsId, organizationsIdCreates a new SecurityProfileGroup in a given organization and location.
organizations_locations_security_profile_groups_deleteDELETElocationsId, organizationsId, securityProfileGroupsIdDeletes a single SecurityProfileGroup.
organizations_locations_security_profile_groups_patchUPDATElocationsId, organizationsId, securityProfileGroupsIdUpdates the parameters of a single SecurityProfileGroup.

SELECT examples

Lists SecurityProfileGroups in a given organization and location.

SELECT
name,
description,
createTime,
etag,
labels,
threatPreventionProfile,
updateTime
FROM google.networksecurity.security_profile_groups
WHERE locationsId = '{{ locationsId }}'
AND organizationsId = '{{ organizationsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.networksecurity.security_profile_groups (
locationsId,
organizationsId,
name,
description,
labels,
threatPreventionProfile
)
SELECT
'{{ locationsId }}',
'{{ organizationsId }}',
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ threatPreventionProfile }}'
;

UPDATE example

Updates a security_profile_groups resource.

/*+ update */
UPDATE google.networksecurity.security_profile_groups
SET
name = '{{ name }}',
description = '{{ description }}',
labels = '{{ labels }}',
threatPreventionProfile = '{{ threatPreventionProfile }}'
WHERE
locationsId = '{{ locationsId }}'
AND organizationsId = '{{ organizationsId }}'
AND securityProfileGroupsId = '{{ securityProfileGroupsId }}';

DELETE example

Deletes the specified security_profile_groups resource.

/*+ delete */
DELETE FROM google.networksecurity.security_profile_groups
WHERE locationsId = '{{ locationsId }}'
AND organizationsId = '{{ organizationsId }}'
AND securityProfileGroupsId = '{{ securityProfileGroupsId }}';