如何以编程方式获取Google Cloud的定价详细信息? [英] How to get Google Cloud pricing details programmatically?
问题描述
有人可以告诉我如何以编程方式从Google Cloud网站获取Google Cloud定价详细信息(例如Google Compute Engine,Google Cloud Storage,Google Cloud SQL等的定价)吗?
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?
Google Cloud是否以JSON格式提供定价详细信息?
Does Google Cloud provide the pricing details in JSON format?
推荐答案
您可以通过例如,在 https://cloud.google.com/skus 中,您可以找到计算引擎"服务ID是 6F81-5844-456A
,然后您可以使用
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.
这篇关于如何以编程方式获取Google Cloud的定价详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!