Skip to main content

volume_restores

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

Overview

Namevolume_restores
TypeResource
Idgoogle.gkebackup.volume_restores

Fields

NameDatatypeDescription
namestringOutput only. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
completeTimestringOutput only. The timestamp when the associated underlying volume restoration completed.
createTimestringOutput only. The timestamp when this VolumeRestore resource was created.
etagstringOutput only. etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a volume restore from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform volume restore updates in order to avoid race conditions.
statestringOutput only. The current state of this VolumeRestore.
stateMessagestringOutput only. A human readable message explaining why the VolumeRestore is in its current state.
targetPvcobjectA reference to a namespaced resource in Kubernetes.
uidstringOutput only. Server generated global unique identifier of UUID format.
updateTimestringOutput only. The timestamp when this VolumeRestore resource was last updated.
volumeBackupstringOutput only. The full name of the VolumeBackup from which the volume will be restored. Format: projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*.
volumeHandlestringOutput only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup.
volumeTypestringOutput only. The type of volume provisioned

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, restorePlansId, restoresId, volumeRestoresIdRetrieve the details of a single VolumeRestore.
listSELECTlocationsId, projectsId, restorePlansId, restoresIdLists the VolumeRestores for a given Restore.

SELECT examples

Lists the VolumeRestores for a given Restore.

SELECT
name,
completeTime,
createTime,
etag,
state,
stateMessage,
targetPvc,
uid,
updateTime,
volumeBackup,
volumeHandle,
volumeType
FROM google.gkebackup.volume_restores
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND restorePlansId = '{{ restorePlansId }}'
AND restoresId = '{{ restoresId }}';