karn
karn

Reputation: 88

How can I get the billing for a VM Instance in GCP?

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?

Upvotes: 3

Views: 5024

Answers (1)

kkpoon
kkpoon

Reputation: 1989

In your GCP Web Console,

  1. go to Billing page
  2. go to Billing export section
  3. you could either export the detail billing to BigQuery or File
  4. you could search the billing item in the export

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

Upvotes: 1

Related Questions