如何在GCP中获取VM实例的账单? [英] How can I get the billing for a VM Instance in GCP?
本文介绍了如何在GCP中获取VM实例的账单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Google Cloud
中有一个项目,其中有多个实例正在运行,并且我有该组织的结算帐户.但是我想制作一个VM实例,说几个 vm-01
几个小时,然后它将被删除.我想使用API调用获取 vm-01
在此期间产生的确切费用.有可能吗?
I have a project in Google Cloud
, where I have multiple instances running, and I have a billing account for the organisation. But I want to make a VM instance, say vm-01
for couple of hours then it will be deleted. I want to get the exact cost that vm-01
incurred during it's period using the API calls. Is it possible?
推荐答案
在您的GCP Web控制台中,
In your GCP Web Console,
- 转到结算页面
- 转到"结算出口"部分
- 您可以将明细账单导出到BigQuery或File
- 您可以在导出中搜索结算项目
- go to Billing page
- go to Billing export section
- you could either export the detail billing to BigQuery or File
- you could search the billing item in the export
- https://cloud.google.com/billing/docs/how-to/bq-examples
- https://cloud.google.com/billing/docs/how-to/export-data-file
并建议您使用标签来标记资源,例如Compute Engine,以实现更好的资源管理.
And suggest you to use Label to label the resource, e.g. Compute Engine, for better resource management.
这篇关于如何在GCP中获取VM实例的账单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文