---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/snapshots"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/snapshots"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/snapshots

`GET /v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/snapshots`

## Request

- Base URL: `https://file.googleapis.com`
- URL: `https://file.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/snapshots`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Lists all snapshots in a project for either a specified location or for all locations.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `instancesId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `filter` string
- `orderBy` string
- `pageSize` integer
- `pageToken` string
- `returnPartialSuccess` boolean

## Response `200`

Successful response

- ListSnapshotsResponse: ListSnapshotsResponse is the result of ListSnapshotsRequest.
  - `nextPageToken` string: The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.
  - `snapshots` Snapshot[]: A list of snapshots in the project for the specified instance.
    - `createTime` string, google-datetime: Output only. The time when the snapshot was created.
    - `description` string: A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
    - `filesystemUsedBytes` string, int64: Output only. The amount of bytes needed to allocate a full copy of the snapshot content
    - `labels` object: Resource labels to represent user provided metadata.
    - `name` string: Output only. The resource name of the snapshot, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
    - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'DELETING': Output only. The snapshot state.
    - `tags` object: Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: "123456789012/environment" : "production", "123456789013/costCenter" : "marketing" See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value
  - `unreachable` string[]: Unordered list. Locations that could not be reached.

---

[API](https://skmtc.dev/google/apis/file.md) - [All operations](https://skmtc.dev/google/apis/file/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/file/revisions/fbccb5a717d2?raw)
