volume_backups
Creates, updates, deletes, gets or lists a volume_backups
resource.
Overview
Name | volume_backups |
Type | Resource |
Id | google.gkebackup.volume_backups |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The full name of the VolumeBackup resource. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/* . |
completeTime | string | Output only. The timestamp when the associated underlying volume backup operation completed. |
createTime | string | Output only. The timestamp when this VolumeBackup resource was created. |
diskSizeBytes | string | Output only. The minimum size of the disk to which this VolumeBackup can be restored. |
etag | string | Output 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. |
format | string | Output only. The format used for the volume backup. |
sourcePvc | object | A reference to a namespaced resource in Kubernetes. |
state | string | Output only. The current state of this VolumeBackup. |
stateMessage | string | Output only. A human readable message explaining why the VolumeBackup is in its current state. |
storageBytes | string | 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. |
uid | string | Output only. Server generated global unique identifier of UUID format. |
updateTime | string | Output only. The timestamp when this VolumeBackup resource was last updated. |
volumeBackupHandle | string | Output only. A storage system-specific opaque handle to the underlying volume backup. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | backupPlansId, backupsId, locationsId, projectsId, volumeBackupsId | Retrieve the details of a single VolumeBackup. |
list | SELECT | backupPlansId, backupsId, locationsId, projectsId | Lists the VolumeBackups for a given Backup. |
SELECT
examples
Lists the VolumeBackups for a given Backup.
SELECT
name,
completeTime,
createTime,
diskSizeBytes,
etag,
format,
sourcePvc,
state,
stateMessage,
storageBytes,
uid,
updateTime,
volumeBackupHandle
FROM google.gkebackup.volume_backups
WHERE backupPlansId = '{{ backupPlansId }}'
AND backupsId = '{{ backupsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';