Skip to main content

security_profiles

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

Overview

Namesecurity_profiles
TypeResource
Idgoogle.networksecurity.security_profiles

Fields

NameDatatypeDescription
namestringImmutable. Identifier. Name of the SecurityProfile resource. It matches pattern `projects
descriptionstringOptional. An optional description of the profile. Max length 512 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.
threatPreventionProfileobjectThreatPreventionProfile defines an action for specific threat signatures or severity levels.
typestringImmutable. The single ProfileType that the SecurityProfile resource configures.
updateTimestringOutput only. Last resource update timestamp.

Methods

NameAccessible byRequired ParamsDescription
organizations_locations_security_profiles_getSELECTlocationsId, organizationsId, securityProfilesIdGets details of a single SecurityProfile.
organizations_locations_security_profiles_listSELECTlocationsId, organizationsIdLists SecurityProfiles in a given organization and location.
organizations_locations_security_profiles_createINSERTlocationsId, organizationsIdCreates a new SecurityProfile in a given organization and location.
organizations_locations_security_profiles_deleteDELETElocationsId, organizationsId, securityProfilesIdDeletes a single SecurityProfile.
organizations_locations_security_profiles_patchUPDATElocationsId, organizationsId, securityProfilesIdUpdates the parameters of a single SecurityProfile.

SELECT examples

Lists SecurityProfiles in a given organization and location.

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

INSERT example

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

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

UPDATE example

Updates a security_profiles resource.

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

DELETE example

Deletes the specified security_profiles resource.

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