如何在 GCP 中获得 VM 实例的账单? [英] How can I get the billing for a VM Instance in GCP?

查看:27
本文介绍了如何在 GCP 中获得 VM 实例的账单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Google Cloud 中有一个项目,我在其中运行多个实例,并且我有一个组织的结算帐号.但是我想创建一个 VM 实例,例如 vm-01 几个小时,然后它将被删除.我想获得 vm-01 在使用 API 调用期间产生的确切成本.可能吗?

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,

  1. 转到结算页面
  2. 转到帐单导出部分
  3. 您可以将明细帐单导出到 BigQuery 或文件
  4. 您可以在导出中搜索计费项目

并建议您使用 Label 来标记资源,例如Compute Engine,用于更好地管理资源.

And suggest you to use Label to label the resource, e.g. Compute Engine, for better resource management.

这篇关于如何在 GCP 中获得 VM 实例的账单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆