- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- Try it!
Lists the names of the attached subscriptions on this topic.
HTTP request
GET https://pubsub.googleapis.com/v1/{topic}/subscriptions
Path parameters
Parameters | |
---|---|
topic |
Required. The name of the topic that subscriptions are attached to. Format is |
Query parameters
Parameters | |
---|---|
pageSize |
Maximum number of subscription names to return. |
pageToken |
The value returned by the last |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Response for the subscriptions.list
method.
JSON representation |
---|
{ "subscriptions": [ string ], "nextPageToken": string } |
Fields | |
---|---|
subscriptions[] |
The names of subscriptions attached to the topic specified in the request. |
nextPageToken |
If not empty, indicates that there may be more subscriptions 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.