Skip to main content

volume_backups

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

Overview

Namevolume_backups
TypeResource
Idgoogle.gkebackup.volume_backups

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The full name of the VolumeBackup resource. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
completeTimestring (google-datetime)Output only. The timestamp when the associated underlying volume backup operation completed.
createTimestring (google-datetime)Output only. The timestamp when this VolumeBackup resource was created.
diskSizeBytesstring (int64)Output only. The minimum size of the disk to which this VolumeBackup can be restored.
etagstringOutput only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume backup from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform volume backup updates in order to avoid race conditions.
formatstringOutput only. The format used for the volume backup.
satisfiesPzibooleanOutput only. [Output Only] Reserved for future use.
satisfiesPzsbooleanOutput only. [Output Only] Reserved for future use.
sourcePvcobjectA reference to a namespaced resource in Kubernetes. (id: NamespacedName)
statestringOutput only. The current state of this VolumeBackup.
stateMessagestringOutput only. A human readable message explaining why the VolumeBackup is in its current state. This field is only meant for human consumption and should not be used programmatically as this field is not guaranteed to be consistent.
storageBytesstring (int64)Output only. The aggregate size of the underlying artifacts associated with this VolumeBackup in the backup storage. This may change over time when multiple backups of the same volume share the same backup storage location. In particular, this is likely to increase in size when the immediately preceding backup of the same volume is deleted.
uidstringOutput only. Server generated global unique identifier of UUID format.
updateTimestring (google-datetime)Output only. The timestamp when this VolumeBackup resource was last updated.
volumeBackupHandlestringOutput only. A storage system-specific opaque handle to the underlying volume backup.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, backupPlansId, backupsId, volumeBackupsIdRetrieve the details of a single VolumeBackup.
listselectprojectsId, locationsId, backupPlansId, backupsIdpageSize, pageToken, filter, orderByLists the VolumeBackups for a given Backup.

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
backupPlansIdstring
backupsIdstring
locationsIdstring
projectsIdstring
volumeBackupsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Retrieve the details of a single VolumeBackup.

SELECT
name,
completeTime,
createTime,
diskSizeBytes,
etag,
format,
satisfiesPzi,
satisfiesPzs,
sourcePvc,
state,
stateMessage,
storageBytes,
uid,
updateTime,
volumeBackupHandle
FROM google.gkebackup.volume_backups
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND backupPlansId = '{{ backupPlansId }}' -- required
AND backupsId = '{{ backupsId }}' -- required
AND volumeBackupsId = '{{ volumeBackupsId }}' -- required;