Method: skus.list

Lists all publicly listed SKUs.

HTTP request

GET https://cloudbilling.googleapis.com/v2beta/skus

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
pageSize

integer

Maximum number of SKUs to return. Results may return fewer than this value. Default value is 50 and maximum value is 5000.

pageToken

string

Page token received from a previous skus.list call to retrieve the next page of results. If this field is empty, the first page is returned.

filter

string

Options for how to filter the SKUs. Currently, only filter on service is supported. Only !=, = operators are supported. Examples: service = "services/DA34-426B-A397"

Request body

The request body must be empty.

Response body

Response message for skus.list.

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

JSON representation
{
  "skus": [
    {
      object (Sku)
    }
  ],
  "nextPageToken": string
}
Fields
skus[]

object (Sku)

The returned publicly listed SKUs.

nextPageToken

string

Token that can be sent as pageToken in the subsequent request to retrieve the next page. If this field is empty, there are no subsequent pages.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/cloud-billing
  • https://www.googleapis.com/auth/cloud-billing.readonly

For more information, see the Authentication Overview.