Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Google Cloud pricing details programmatically?

Can anybody please tell me how can I programmatically get Google Cloud pricing details (e.g., pricing for Google Compute Engine, Google Cloud Storage, Google Cloud SQL, etc.) from Google Cloud website?

Does Google Cloud provide the pricing details in JSON format?

like image 705
user3610916 Avatar asked May 08 '14 05:05

user3610916


1 Answers

You can get the SKUs and prices via the Cloud Billing Catalog API.

For example, in https://cloud.google.com/skus, you can find the "Compute Engine" service id is 6F81-5844-456A and then you can use the services.list API with the parent = services/6F81-5844-456A to find the prices.

like image 169
Misha Brukman Avatar answered Nov 15 '22 10:11

Misha Brukman