Method: services.skus.list

Lists all publicly available SKUs for a given cloud service.

HTTP request

GET https://cloudbilling.googleapis.com/v1/{parent=services/*}/skus

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The name of the service. Example: "services/6F81-5844-456A"

Query parameters

Parameters
startTime

string (Timestamp format)

Optional inclusive start time of the time range for which the pricing versions will be returned. Timestamps in the future are not allowed. The time range has to be within a single calendar month in America/Los_Angeles timezone. Time range as a whole is optional. If not specified, the latest pricing will be returned (up to 12 hours old at most).

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

endTime

string (Timestamp format)

Optional exclusive end time of the time range for which the pricing versions will be returned. Timestamps in the future are not allowed. The time range has to be within a single calendar month in America/Los_Angeles timezone. Time range as a whole is optional. If not specified, the latest pricing will be returned (up to 12 hours old at most).

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

currencyCode

string

The ISO 4217 currency code for the pricing info in the response proto. Will use the conversion rate as of startTime. Optional. If not specified USD will be used.

pageSize

integer

Requested page size. Defaults to 5000.

pageToken

string

A token identifying a page of results to return. This should be a nextPageToken value returned from a previous skus.list call. If unspecified, the first page of results is returned.

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 list of public SKUs of the given service.

nextPageToken

string

A token to retrieve the next page of results. To retrieve the next page, call skus.list again with the pageToken field set to this value. This field is empty if there are no more results to retrieve.

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.

Sku

Encapsulates a single SKU in Google Cloud

JSON representation
{
  "name": string,
  "skuId": string,
  "description": string,
  "category": {
    object (Category)
  },
  "serviceRegions": [
    string
  ],
  "pricingInfo": [
    {
      object (PricingInfo)
    }
  ],
  "serviceProviderName": string,
  "geoTaxonomy": {
    object (GeoTaxonomy)
  }
}
Fields
name

string

The resource name for the SKU. Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"

skuId

string

The identifier for the SKU. Example: "D041-B8A1-6E0B"

description

string

A human readable description of the SKU, has a maximum length of 256 characters.

category

object (Category)

The category hierarchy of this SKU, purely for organizational purpose.

serviceRegions[]

string

List of service regions this SKU is offered at. Example: "asia-east1" Service regions can be found at https://cloud.google.com/about/locations/

pricingInfo[]

object (PricingInfo)

A timeline of pricing info for this SKU in chronological order.

serviceProviderName

string

Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform.

geoTaxonomy

object (GeoTaxonomy)

The geographic taxonomy for this sku.

Category

Represents the category hierarchy of a SKU.

JSON representation
{
  "serviceDisplayName": string,
  "resourceFamily": string,
  "resourceGroup": string,
  "usageType": string
}
Fields
serviceDisplayName

string

The display name of the service this SKU belongs to.

resourceFamily

string

The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc.

resourceGroup

string

A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.

usageType

string

Represents how the SKU is consumed. Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.

PricingInfo

Represents the pricing information for a SKU at a single point of time.

JSON representation
{
  "effectiveTime": string,
  "summary": string,
  "pricingExpression": {
    object (PricingExpression)
  },
  "aggregationInfo": {
    object (AggregationInfo)
  },
  "currencyConversionRate": number
}
Fields
effectiveTime

string (Timestamp format)

The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the startTime field in the request and less than the endTime field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

summary

string

An optional human readable summary of the pricing information, has a maximum length of 256 characters.

pricingExpression

object (PricingExpression)

Expresses the pricing formula. See PricingExpression for an example.

aggregationInfo

object (AggregationInfo)

Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation.

currencyConversionRate

number

Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0. Example: USD * currencyConversionRate = JPY

PricingExpression

Expresses a mathematical pricing formula. For Example:-

usageUnit: GBy tieredRates: [startUsageAmount: 20, unitPrice: $10] [startUsageAmount: 100, unitPrice: $5]

The above expresses a pricing formula where the first 20GB is free, the next 80GB is priced at $10 per GB followed by $5 per GB for additional usage.

JSON representation
{
  "usageUnit": string,
  "displayQuantity": number,
  "tieredRates": [
    {
      object (TierRate)
    }
  ],
  "usageUnitDescription": string,
  "baseUnit": string,
  "baseUnitDescription": string,
  "baseUnitConversionFactor": number
}
Fields
usageUnit

string

The short hand for unit of usage this pricing is specified in. Example: usageUnit of "GiBy" means that usage is specified in "Gibi Byte".

displayQuantity

number

The recommended quantity of units for displaying pricing info. When displaying pricing info it is recommended to display: (unitPrice * displayQuantity) per displayQuantity usageUnit. This field does not affect the pricing formula and is for display purposes only. Example: If the unitPrice is "0.0001 USD", the usageUnit is "GB" and the displayQuantity is "1000" then the recommended way of displaying the pricing info is "0.10 USD per 1000 GB"

tieredRates[]

object (TierRate)

The list of tiered rates for this pricing. The total cost is computed by applying each of the tiered rates on usage. This repeated list is sorted by ascending order of startUsageAmount.

usageUnitDescription

string

The unit of usage in human readable form. Example: "gibi byte".

baseUnit

string

The base unit for the SKU which is the unit used in usage exports. Example: "By"

baseUnitDescription

string

The base unit in human readable form. Example: "byte".

baseUnitConversionFactor

number

Conversion factor for converting from price per usageUnit to price per baseUnit, and startUsageAmount to startUsageAmount in baseUnit. unitPrice / baseUnitConversionFactor = price per baseUnit. startUsageAmount * baseUnitConversionFactor = startUsageAmount in baseUnit.

TierRate

The price rate indicating starting usage and its corresponding price.

JSON representation
{
  "startUsageAmount": number,
  "unitPrice": {
    object (Money)
  }
}
Fields
startUsageAmount

number

Usage is priced at this rate only after this amount. Example: startUsageAmount of 10 indicates that the usage will be priced at the unitPrice after the first 10 usage_units.

unitPrice

object (Money)

The price per unit of usage. Example: unitPrice of amount $10 indicates that each unit will cost $10.

AggregationInfo

Represents the aggregation level and interval for pricing of a single SKU.

JSON representation
{
  "aggregationLevel": enum (AggregationLevel),
  "aggregationInterval": enum (AggregationInterval),
  "aggregationCount": integer
}
Fields
aggregationLevel

enum (AggregationLevel)

aggregationInterval

enum (AggregationInterval)

aggregationCount

integer

The number of intervals to aggregate over. Example: If aggregationLevel is "DAILY" and aggregationCount is 14, aggregation will be over 14 days.

AggregationLevel

The level at which usage is aggregated to compute cost. Example: "ACCOUNT" aggregation level indicates that usage for tiered pricing is aggregated across all projects in a single account.

Enums
AGGREGATION_LEVEL_UNSPECIFIED
ACCOUNT
PROJECT

AggregationInterval

The interval at which usage is aggregated to compute cost. Example: "MONTHLY" aggregation interval indicates that usage for tiered pricing is aggregated every month.

Enums
AGGREGATION_INTERVAL_UNSPECIFIED
DAILY
MONTHLY

GeoTaxonomy

Encapsulates the geographic taxonomy data for a sku.

JSON representation
{
  "type": enum (Type),
  "regions": [
    string
  ]
}
Fields
type

enum (Type)

The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.

regions[]

string

The list of regions associated with a sku. Empty for Global skus, which are associated with all Google Cloud regions.

Type

The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.

Enums
TYPE_UNSPECIFIED The type is not specified.
GLOBAL The sku is global in nature, e.g. a license sku. Global skus are available in all regions, and so have an empty region list.
REGIONAL The sku is available in a specific region, e.g. "us-west2".
MULTI_REGIONAL The sku is associated with multiple regions, e.g. "us-west2" and "us-east1".