Reputation: 141
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?
Upvotes: 9
Views: 6455
Reputation: 13424
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.
Upvotes: 8