Method: projects.subscriptions.list

Lists matching subscriptions.

HTTP request

GET https://pubsub.googleapis.com/v1/{project}/subscriptions

Path parameters

Parameters
project

string

The name of the cloud project that subscriptions belong to. Format is projects/{project}.

Query parameters

Parameters
pageSize

number

Maximum number of subscriptions to return.

pageToken

string

The value returned by the last ListSubscriptionsResponse; indicates that this is a continuation of a prior subscriptions.list call, and that the system should return the next page of data.

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": [
    {
      object(Subscription)
    }
  ],
  "nextPageToken": string,
}
Fields
subscriptions[]

object(Subscription)

The subscriptions that match the request.

nextPageToken

string

If not empty, indicates that there may be more subscriptions that match the request; this value should be passed in a new ListSubscriptionsRequest to get more subscriptions.

Authorization

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 Auth Guide.

Try it!

Send feedback about...

Cloud Pub/Sub