- HTTP request
 - Path parameters
 - Query parameters
 - Request body
 - Response body
 - Authorization scopes
 - Try it!
 
Lists all snapshots in a project for either a specified location or for all locations.
HTTP request
GET https://file.googleapis.com/v1beta1/{parent=projects/*/locations/*/instances/*}/snapshots
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent | 
                
                   
 Required. The instance for which to retrieve snapshot information, in the format   | 
              
Query parameters
| Parameters | |
|---|---|
pageSize | 
                
                   
 The maximum number of items to return.  | 
              
pageToken | 
                
                   
 The nextPageToken value to use if there are additional results to retrieve for this list request.  | 
              
orderBy | 
                
                   
 Sort results. Supported values are "name", "name desc" or "" (unsorted).  | 
              
filter | 
                
                   
 List filter.  | 
              
returnPartialSuccess | 
                
                   
 Optional. If true, allow partial responses for multi-regional Aggregated List requests.  | 
              
Request body
The request body must be empty.
Response body
ListSnapshotsResponse is the result of ListSnapshotsRequest.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{
  "snapshots": [
    {
      object ( | 
                  
| Fields | |
|---|---|
snapshots[] | 
                    
                       
 A list of snapshots in the project for the specified instance.  | 
                  
nextPageToken | 
                    
                       
 The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.  | 
                  
unreachable[] | 
                    
                       
 Unordered list. Locations that could not be reached.  | 
                  
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.