- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Lists the names of the snapshots on this topic. Snapshots are used in subscriptions.seek 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 | |
---|---|
topic |
Required. The name of the topic that snapshots are attached to. Format is |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. Maximum number of snapshot names to return. |
pageToken |
Optional. The value returned by the last |
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:
JSON representation |
---|
{ "snapshots": [ string ], "nextPageToken": string } |
Fields | |
---|---|
snapshots[] |
Optional. The names of the snapshots that match the request. |
nextPageToken |
Optional. If not empty, indicates that there may be more snapshots that match the request; this value should be passed in a new |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/pubsub
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.