Method: projects.locations.volumes.snapshots.list

Returns descriptions of all snapshots for a volume.

HTTP request

GET https://netapp.googleapis.com/v1/{parent=projects/*/locations/*/volumes/*}/snapshots

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The volume for which to retrieve snapshot information, in the format projects/{projectId}/locations/{location}/volumes/{volumeId}.

Query parameters

Parameters
pageSize

integer

The maximum number of items to return.

pageToken

string

The nextPageToken value to use if there are additional results to retrieve for this list request.

orderBy

string

Sort results. Supported values are "name", "name desc" or "" (unsorted).

filter

string

List filter.

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 (Snapshot)
    }
  ],
  "nextPageToken": string,
  "unreachable": [
    string
  ]
}
Fields
snapshots[]

object (Snapshot)

A list of snapshots in the project for the specified volume.

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.

unreachable[]

string

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.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • netapp.snapshots.list

For more information, see the IAM documentation.