Skip to main content

postures_revisions

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

Overview

Namepostures_revisions
TypeResource
Idgoogle.securityposture.postures_revisions

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. Identifier. The name of the posture, in the format organizations/{organization}/locations/global/postures/{posture_id}.
annotationsobjectOptional. The user-specified annotations for the posture. For details about the values you can use in an annotation, see AIP-148: Standard fields.
categoriesarrayOutput only. The categories that the posture belongs to, as determined by the Security Posture API.
createTimestring (google-datetime)Output only. The time at which the posture was created.
descriptionstringOptional. A description of the posture.
etagstringOptional. An opaque identifier for the current version of the posture at the specified revision_id. To prevent concurrent updates from overwriting each other, always provide the etag when you update a posture. You can also provide the etag when you delete a posture, to help ensure that you're deleting the intended version of the posture.
policySetsarrayRequired. The PolicySet resources that the posture includes.
reconcilingbooleanOutput only. Whether the posture is in the process of being updated.
revisionIdstringOutput only. Immutable. An opaque eight-character string that identifies the revision of the posture. A posture can have multiple revisions; when you deploy a posture, you deploy a specific revision of the posture.
statestringRequired. The state of the posture at the specified revision_id.
updateTimestring (google-datetime)Output only. The time at which the posture was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_revisionsselectorganizationsId, locationsId, posturesIdpageSize, pageTokenLists all revisions of a single Posture.

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
posturesIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Lists all revisions of a single Posture.

SELECT
name,
annotations,
categories,
createTime,
description,
etag,
policySets,
reconciling,
revisionId,
state,
updateTime
FROM google.securityposture.postures_revisions
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND posturesId = '{{ posturesId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';