Lists the existing snapshots. Snapshots are used in [subscriptions.seek]( https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.
HTTP request
Path parameters
Parameters
project
string
Required. The name of the project in which to list snapshots. Format is projects/{project-id}.
Query parameters
Parameters
pageSize
integer
Optional. Maximum number of snapshots to return.
pageToken
string
Optional. The value returned by the last ListSnapshotsResponse; indicates that this is a continuation of a prior snapshots.list call, and that the system should return the next page of data.
Request body
The request body must be empty.
Response body
Response for the snapshots.list method.
If successful, the response body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-17 UTC."],[],[]]