# REST Resource: projects.locations.restorePlans.restores.volumeRestores

- [Resource: VolumeRestore](https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores#VolumeRestore)
  - [JSON representation](https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores#VolumeRestore.SCHEMA_REPRESENTATION)
- [VolumeType](https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores#VolumeType)
- [State](https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores#State)
- [Methods](https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores#METHODS_SUMMARY)

## Resource: VolumeRestore

Represents the operation of restoring a volume from a VolumeBackup.

| JSON representation |
|---|
| ``` { "name": string, "uid": string, "createTime": string, "updateTime": string, "volumeBackup": string, "targetPvc": { object (`https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/NamespacedName`) }, "volumeHandle": string, "volumeType": enum (`https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores#VolumeType`), "completeTime": string, "state": enum (`https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores#State`), "stateMessage": string, "etag": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Full name of the VolumeRestore resource. Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*` |
| `uid` | `string` Output only. Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when this VolumeRestore resource was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when this VolumeRestore resource was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `volumeBackup` | `string` Output only. The full name of the VolumeBackup from which the volume will be restored. Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`. |
| `targetPvc` | ``object (`https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/NamespacedName`)`` Output only. The reference to the target Kubernetes PVC to be restored. |
| `volumeHandle` | `string` Output only. A storage system-specific opaque handler to the underlying volume created for the target PVC from the volume backup. |
| `volumeType` | ``enum (`https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores#VolumeType`)`` Output only. The type of volume provisioned |
| `completeTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the associated underlying volume restoration completed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `state` | ``enum (`https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores#State`)`` Output only. The current state of this VolumeRestore. |
| `stateMessage` | `string` Output only. A human readable message explaining why the VolumeRestore is in its current state. |
| `etag` | `string` Output 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. |

## VolumeType

Supported volume types.

| Enums ||
|---|---|
| `VOLUME_TYPE_UNSPECIFIED` | Default |
| `GCE_PERSISTENT_DISK` | Compute Engine Persistent Disk volume |

## State

The current state of a VolumeRestore

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | This is an illegal state and should not be encountered. |
| `CREATING` | A volume for the restore was identified and restore process is about to start. |
| `RESTORING` | The volume is currently being restored. |
| `SUCCEEDED` | The volume has been successfully restored. |
| `FAILED` | The volume restoration process failed. |
| `DELETING` | This VolumeRestore resource is in the process of being deleted. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores/get` | Retrieve the details of a single VolumeRestore. |
| ### `https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores/getIamPolicy` | Gets the access control policy for a resource. |
| ### `https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores/list` | Lists the VolumeRestores for a given Restore. |
| ### `https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores/setIamPolicy` | Sets the access control policy on the specified resource. |
| ### `https://docs.cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/projects.locations.restorePlans.restores.volumeRestores/testIamPermissions` | Returns permissions that a caller has on the specified resource. |