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:

Successful response

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.

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.
organizations_locations_security_profile_groups_listselectorganizationsId, locationsIdpageSize, pageTokenLists SecurityProfileGroups in a given organization and location.
organizations_locations_security_profile_groups_createinsertorganizationsId, locationsIdsecurityProfileGroupIdCreates a new SecurityProfileGroup in a given organization and location.
organizations_locations_security_profile_groups_patchupdateorganizationsId, locationsId, securityProfileGroupsIdupdateMaskUpdates the parameters of a single SecurityProfileGroup.
organizations_locations_security_profile_groups_deletedeleteorganizationsId, 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
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
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__name,
data__description,
data__labels,
data__threatPreventionProfile,
data__customMirroringProfile,
data__customInterceptProfile,
organizationsId,
locationsId,
securityProfileGroupId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ threatPreventionProfile }}',
'{{ customMirroringProfile }}',
'{{ customInterceptProfile }}',
'{{ 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__name = '{{ name }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__threatPreventionProfile = '{{ threatPreventionProfile }}',
data__customMirroringProfile = '{{ customMirroringProfile }}',
data__customInterceptProfile = '{{ customInterceptProfile }}'
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 }}';