Skip to main content

revisions

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

Overview

Namerevisions
TypeResource
Idgoogle.redis.revisions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The name of the ACL policy revision. Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
attachedClustersarrayOutput only. A list of clusters that are attached to this ACL policy revision.
createTimestring (google-datetime)Output only. The timestamp that the revision was created.
revisionNumberstring (int64)Output only. The revision number of the ACL policy revision.
snapshotobjectOutput only. The snapshot of the ACL policy at the time of revision creation. (id: AclPolicy)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, aclPoliciesId, revisionsIdGets details of a specific ACL policy revision.
listselectprojectsId, locationsId, aclPoliciesIdpageSize, pageTokenLists all ACL policy revisions in a given ACL policy.

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
aclPoliciesIdstring
locationsIdstring
projectsIdstring
revisionsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets details of a specific ACL policy revision.

SELECT
name,
attachedClusters,
createTime,
revisionNumber,
snapshot
FROM google.redis.revisions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND aclPoliciesId = '{{ aclPoliciesId }}' -- required
AND revisionsId = '{{ revisionsId }}' -- required
;