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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. Identifier. Name of the SecurityProfile resource. It matches pattern projects|organizations/*/locations/{location}/securityProfiles/{security_profile}.
createTimestring (google-datetime)Output only. Resource creation timestamp.
customInterceptProfileobjectThe custom TPPI configuration for the SecurityProfile. (id: CustomInterceptProfile)
customMirroringProfileobjectThe custom Packet Mirroring v2 configuration for the SecurityProfile. (id: CustomMirroringProfile)
descriptionstringOptional. An optional description of the profile. Max length 512 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.
threatPreventionProfileobjectThe threat prevention configuration for the SecurityProfile. (id: ThreatPreventionProfile)
typestringImmutable. The single ProfileType that the SecurityProfile resource configures.
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_profiles_getselectorganizationsId, locationsId, securityProfilesIdGets details of a single SecurityProfile.
organizations_locations_security_profiles_listselectorganizationsId, locationsIdpageSize, pageTokenLists SecurityProfiles in a given organization and location.
organizations_locations_security_profiles_createinsertorganizationsId, locationsIdsecurityProfileIdCreates a new SecurityProfile in a given organization and location.
organizations_locations_security_profiles_patchupdateorganizationsId, locationsId, securityProfilesIdupdateMaskUpdates the parameters of a single SecurityProfile.
organizations_locations_security_profiles_deletedeleteorganizationsId, locationsId, securityProfilesIdetagDeletes a single SecurityProfile.

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
securityProfilesIdstring
etagstring
pageSizeinteger (int32)
pageTokenstring
securityProfileIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single SecurityProfile.

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

INSERT examples

Creates a new SecurityProfile in a given organization and location.

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

UPDATE examples

Updates the parameters of a single SecurityProfile.

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

DELETE examples

Deletes a single SecurityProfile.

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