Method: accounts.listSubscribers

Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account.

Possible error codes:

  • PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin.
  • INVALID_ARGUMENT: Required request parameters are missing or invalid.
  • NOT_FOUND: The topic resource doesn't exist.
  • INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
  • UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.

Return value: A list of service email addresses.

HTTP request

GET https://cloudchannel.googleapis.com/v1alpha1/{account=accounts/*}:listSubscribers

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
account

string

Required. Resource name of the account.

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of service accounts to return. The service may return fewer than this value. If unspecified, returns at most 100 service accounts. The maximum value is 1000; the server will coerce values above 1000.

pageToken

string

Optional. A page token, received from a previous accounts.listSubscribers call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to accounts.listSubscribers must match the call that provided the page token.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Response Message for accounts.listSubscribers.

JSON representation
{
  "topic": string,
  "serviceAccounts": [
    string
  ],
  "nextPageToken": string
}
Fields
topic

string

Name of the topic registered with the reseller.

serviceAccounts[]

string

List of service accounts which have subscriber access to the topic.

nextPageToken

string

A token that can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/apps.order

For more information, see the Authentication Overview.