I need to calculate the billing of particular resource in gcp and I could't find an API to achieve this,and find some pricingInfo from the response of services.skus.list method. Can I use this info to calculate the price of that skew...?
Asked
Active
Viewed 174 times
1 Answers
1
Yes, that's exactly what it's meant to be used. From the doc of PricingInfo
Represents the pricing information for a SKU at a single point of time.

Martheen
- 5,198
- 4
- 32
- 55
-
But how can we find the usage details of particular sku..? We will get the pricing info, and we need the consumption unit to calculate the resource usage. – Cloud_wiz May 29 '20 at 02:40
-
It contains [PricingExpression](https://cloud.google.com/billing/reference/rest/v1/services.skus/list#PricingExpression) which contain the formula to calculate them – Martheen May 29 '20 at 03:07