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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Full name of the VolumeRestore resource. Format: projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*
completeTimestring (google-datetime)Output only. The timestamp when the associated underlying volume restoration completed.
createTimestring (google-datetime)Output 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. (id: NamespacedName)
uidstringOutput only. Server generated global unique identifier of UUID format.
updateTimestring (google-datetime)Output 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, restorePlansId, restoresId, volumeRestoresIdRetrieve the details of a single VolumeRestore.
listselectprojectsId, locationsId, restorePlansId, restoresIdpageSize, pageToken, filter, orderByLists the VolumeRestores for a given Restore.

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
locationsIdstring
projectsIdstring
restorePlansIdstring
restoresIdstring
volumeRestoresIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Retrieve the details of a single VolumeRestore.

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