Skip to main content

backup_collections

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

Overview

Namebackup_collections
TypeResource
Idgoogle.redis.backup_collections

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Full resource path of the backup collection.
clusterstringOutput only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}
clusterUidstringOutput only. The cluster uid of the backup collection.
createTimestring (google-datetime)Output only. The time when the backup collection was created.
kmsKeystringOutput only. The KMS key used to encrypt the backups under this backup collection.
lastBackupTimestring (google-datetime)Output only. The last time a backup was created in the backup collection.
totalBackupCountstring (int64)Output only. Total number of backups in the backup collection.
totalBackupSizeBytesstring (int64)Output only. Total size of all backups in the backup collection.
uidstringOutput only. System assigned unique identifier of the backup collection.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, backupCollectionsIdGet a backup collection.
listselectprojectsId, locationsIdpageSize, pageTokenLists all backup collections owned by a consumer project in either the specified location (region) or all locations. If location_id is specified as - (wildcard), then all regions available to the project are queried, and the results are aggregated.

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

SELECT examples

Get a backup collection.

SELECT
name,
cluster,
clusterUid,
createTime,
kmsKey,
lastBackupTime,
totalBackupCount,
totalBackupSizeBytes,
uid
FROM google.redis.backup_collections
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND backupCollectionsId = '{{ backupCollectionsId }}' -- required;