Skip to main content

skus

Creates, updates, deletes, gets or lists a skus resource.

Overview

Nameskus
TypeResource
Idgoogle.cloudbilling.skus

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe resource name for the SKU. Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
categoryobjectThe category hierarchy of this SKU, purely for organizational purpose. (id: Category)
descriptionstringA human readable description of the SKU, has a maximum length of 256 characters.
geoTaxonomyobjectThe geographic taxonomy for this sku. (id: GeoTaxonomy)
pricingInfoarrayA timeline of pricing info for this SKU in chronological order.
serviceProviderNamestringIdentifies the service provider. This is 'Google' for first party services in Google Cloud Platform.
serviceRegionsarrayList of service regions this SKU is offered at. Example: "asia-east1" Service regions can be found at https://cloud.google.com/about/locations/
skuIdstringThe identifier for the SKU. Example: "D041-B8A1-6E0B"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservicesIdstartTime, endTime, currencyCode, pageSize, pageTokenLists all publicly available SKUs for a given cloud service.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
servicesIdstring
currencyCodestring
endTimestring (google-datetime)
pageSizeinteger (int32)
pageTokenstring
startTimestring (google-datetime)

SELECT examples

Lists all publicly available SKUs for a given cloud service.

SELECT
name,
category,
description,
geoTaxonomy,
pricingInfo,
serviceProviderName,
serviceRegions,
skuId
FROM google.cloudbilling.skus
WHERE servicesId = '{{ servicesId }}' -- required
AND startTime = '{{ startTime }}'
AND endTime = '{{ endTime }}'
AND currencyCode = '{{ currencyCode }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';