Skip to main content

posture_templates

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

Overview

Nameposture_templates
TypeResource
Idgoogle.securityposture.posture_templates

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The name of the posture template, in the format organizations/{organization}/locations/global/postureTemplates/{posture_template}.
categoriesarrayOutput only. The categories that the posture template belongs to, as determined by the Security Posture API.
descriptionstringOutput only. A description of the posture template.
policySetsarrayOutput only. The PolicySet resources that the posture template includes.
revisionIdstringOutput only. A string that identifies the revision of the posture template.
statestringOutput only. The state of the posture template at the specified revision_id.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectorganizationsId, locationsId, postureTemplatesIdrevisionIdGets a single revision of a PostureTemplate.
listselectorganizationsId, locationsIdpageSize, pageToken, filterLists every PostureTemplate in a given organization and location.

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
postureTemplatesIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
revisionIdstring

SELECT examples

Gets a single revision of a PostureTemplate.

SELECT
name,
categories,
description,
policySets,
revisionId,
state
FROM google.securityposture.posture_templates
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND postureTemplatesId = '{{ postureTemplatesId }}' -- required
AND revisionId = '{{ revisionId }}';