如何使用Google Cloud Billing API计算使用成本? [英] How to use Google Cloud Billing APIs to calculate usage costs?
问题描述
如何使用Google Cloud Billing API检索到目前为止的总预期账单/累计账单?
How can I use the Google Cloud Billing APIs to retrieve my total expected bill / accumulated bill so far?
是否有一个API调用可以简单地返回到目前为止某个计费帐户的费用?
Is there an API call that simply returns the cost so far for a certain billing account?
或者,也可以组合使用多个呼叫(一个用于检索使用情况数据,而另一个与各种Google Cloud服务的价格一起使用),以自行计算费用?
Or alternatively, a combination of calls - one for retrieving the usage data and the other with the prices for the various Google Cloud services - to calculate the costs myself?
谢谢
推荐答案
您尝试过Google Cloud Billing Report吗?
Have you try Google Cloud Billing Report ? https://cloudplatform.googleblog.com/2018/03/understand-your-spending-at-a-glance-with-Google-Cloud-Billing-reports-beta.html
这篇关于如何使用Google Cloud Billing API计算使用成本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!