# REST Resource: projects.locations.volumes.snapshots

- [Resource: VolumeSnapshot](https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots#VolumeSnapshot)
  - [JSON representation](https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots#VolumeSnapshot.SCHEMA_REPRESENTATION)
- [SnapshotType](https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots#SnapshotType)
- [Methods](https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots#METHODS_SUMMARY)

## Resource: VolumeSnapshot

A snapshot of a volume. Only boot volumes can have snapshots.

| JSON representation |
|---|
| ``` { "name": string, "id": string, "description": string, "createTime": string, "storageVolume": string, "type": enum (`https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots#SnapshotType`) } ``` |

| Fields ||
|---|---|
| `name` | `string` The name of the snapshot. |
| `id` | `string` Output only. An identifier for the snapshot, generated by the backend. |
| `description` | `string` The description of the snapshot. |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. The creation time of the snapshot. |
| `storageVolume` | `string` Output only. The name of the volume which this snapshot belongs to. |
| `type` | ``enum (`https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots#SnapshotType`)`` Output only. The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc. |

## SnapshotType

Represents the type of a snapshot.

| Enums ||
|---|---|
| `SNAPSHOT_TYPE_UNSPECIFIED` | Type is not specified. |
| `AD_HOC` | Snapshot was taken manually by user. |
| `SCHEDULED` | Snapshot was taken automatically as a part of a snapshot schedule. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots/create` | Takes a snapshot of a boot volume. |
| ### `https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots/delete` | Deletes a volume snapshot. |
| ### `https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots/get` | Returns the specified snapshot resource. |
| ### `https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots/list` | Retrieves the list of snapshots for the specified volume. |
| ### `https://docs.cloud.google.com/bare-metal/docs/reference/rest/v2/projects.locations.volumes.snapshots/restoreVolumeSnapshot` | Uses the specified snapshot to restore its parent volume. |