security_profiles
Creates, updates, deletes, gets or lists a security_profiles
resource.
Overview
Name | security_profiles |
Type | Resource |
Id | google.networksecurity.security_profiles |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Identifier. Name of the SecurityProfile resource. It matches pattern `projects |
description | string | Optional. An optional description of the profile. Max length 512 characters. |
createTime | string | Output only. Resource creation timestamp. |
etag | string | Output 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. |
labels | object | Optional. Labels as key value pairs. |
threatPreventionProfile | object | ThreatPreventionProfile defines an action for specific threat signatures or severity levels. |
type | string | Immutable. The single ProfileType that the SecurityProfile resource configures. |
updateTime | string | Output only. Last resource update timestamp. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_locations_security_profiles_get | SELECT | locationsId, organizationsId, securityProfilesId | Gets details of a single SecurityProfile. |
organizations_locations_security_profiles_list | SELECT | locationsId, organizationsId | Lists SecurityProfiles in a given organization and location. |
organizations_locations_security_profiles_create | INSERT | locationsId, organizationsId | Creates a new SecurityProfile in a given organization and location. |
organizations_locations_security_profiles_delete | DELETE | locationsId, organizationsId, securityProfilesId | Deletes a single SecurityProfile. |
organizations_locations_security_profiles_patch | UPDATE | locationsId, organizationsId, securityProfilesId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networksecurity.security_profiles (
locationsId,
organizationsId,
threatPreventionProfile,
name,
description,
labels,
type
)
SELECT
'{{ locationsId }}',
'{{ organizationsId }}',
'{{ threatPreventionProfile }}',
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ type }}'
;
- name: your_resource_model_name
props:
- name: threatPreventionProfile
value:
- name: severityOverrides
value:
- - name: severity
value: string
- name: action
value: string
- name: threatOverrides
value:
- - name: threatId
value: string
- name: type
value: string
- name: action
value: string
- name: name
value: string
- name: description
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: etag
value: string
- name: labels
value: object
- name: type
value: string
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 }}';