- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Sku
- Category
- PricingInfo
- PricingExpression
- TierRate
- AggregationInfo
- AggregationLevel
- AggregationInterval
- GeoTaxonomy
- Type
- Try it!
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 |
Required. The name of the service. Example: "services/6F81-5844-456A" |
Query parameters
Parameters | |
---|---|
startTime |
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: |
endTime |
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: |
currencyCode |
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 |
Requested page size. Defaults to 5000. |
pageToken |
A token identifying a page of results to return. This should be a |
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 ( |
Fields | |
---|---|
skus[] |
The list of public SKUs of the given service. |
nextPageToken |
A token to retrieve the next page of results. To retrieve the next page, call |
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 ( |
Fields | |
---|---|
name |
The resource name for the SKU. Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B" |
skuId |
The identifier for the SKU. Example: "D041-B8A1-6E0B" |
description |
A human readable description of the SKU, has a maximum length of 256 characters. |
category |
The category hierarchy of this SKU, purely for organizational purpose. |
serviceRegions[] |
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[] |
A timeline of pricing info for this SKU in chronological order. |
serviceProviderName |
Identifies the service provider. This is 'Google' for first party services in Google Cloud Platform. |
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 |
The display name of the service this SKU belongs to. |
resourceFamily |
The type of product the SKU refers to. Example: "Compute", "Storage", "Network", "ApplicationServices" etc. |
resourceGroup |
A group classification for related SKUs. Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc. |
usageType |
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 ( |
Fields | |
---|---|
effectiveTime |
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: |
summary |
An optional human readable summary of the pricing information, has a maximum length of 256 characters. |
pricingExpression |
Expresses the pricing formula. See |
aggregationInfo |
Aggregation Info. This can be left unspecified if the pricing expression doesn't require aggregation. |
currencyConversionRate |
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 ( |
Fields | |
---|---|
usageUnit |
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 |
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[] |
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 |
The unit of usage in human readable form. Example: "gibi byte". |
baseUnit |
The base unit for the SKU which is the unit used in usage exports. Example: "By" |
baseUnitDescription |
The base unit in human readable form. Example: "byte". |
baseUnitConversionFactor |
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 ( |
Fields | |
---|---|
startUsageAmount |
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 |
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 ( |
Fields | |
---|---|
aggregationLevel |
|
aggregationInterval |
|
aggregationCount |
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 ( |
Fields | |
---|---|
type |
The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL. |
regions[] |
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". |