google-cloud-platformgoogle-cloud-billing

how to get the current google resource price programmatically?


I want to get the Pricing for Google cloud resources programatically and all the documents and references I see only takes me to the https://cloud.google.com/billing/v1/how-tos/catalog-api. This page lists just 2 apis, one to give a list of all services and other to give the SKUs under that service. Are there no other refined apis that can give me only the details I want ? like pricing for Compute engine in a region ? Do I need to query these huge json files just to get the price of one resource ?

Also is there a static look up value for these service display names ? like "Compute Engine" how do I know what are all the names google uses for say App Engine, or Cloud Storage etc ?


Solution

  • This allows developers to manage billing for their Google Cloud Platform projects programmatically. There is a very old PIT on this issue as Feature Request. Feel free to post there for further updates and also put your current requirement.