security_profile_groups
Creates, updates, deletes, gets or lists a security_profile_groups
resource.
Overview
Name | security_profile_groups |
Type | Resource |
Id | google.networksecurity.security_profile_groups |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Identifier. Name of the SecurityProfileGroup resource. It matches pattern `projects |
description | string | Optional. An optional description of the profile group. Max length 2048 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 | string | Optional. Reference to a SecurityProfile with the ThreatPrevention configuration. |
updateTime | string | Output only. Last resource update timestamp. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_locations_security_profile_groups_get | SELECT | locationsId, organizationsId, securityProfileGroupsId | Gets details of a single SecurityProfileGroup. |
organizations_locations_security_profile_groups_list | SELECT | locationsId, organizationsId | Lists SecurityProfileGroups in a given organization and location. |
organizations_locations_security_profile_groups_create | INSERT | locationsId, organizationsId | Creates a new SecurityProfileGroup in a given organization and location. |
organizations_locations_security_profile_groups_delete | DELETE | locationsId, organizationsId, securityProfileGroupsId | Deletes a single SecurityProfileGroup. |
organizations_locations_security_profile_groups_patch | UPDATE | locationsId, organizationsId, securityProfileGroupsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networksecurity.security_profile_groups (
locationsId,
organizationsId,
name,
description,
labels,
threatPreventionProfile
)
SELECT
'{{ locationsId }}',
'{{ organizationsId }}',
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ threatPreventionProfile }}'
;
- name: your_resource_model_name
props:
- 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: threatPreventionProfile
value: string
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 }}';