简体   繁体   中英

How to programmatically fetch billing details for a GCP VM instance?

I went through the GCP documentation and couldn't find much details. The docs talk about exporting the billing information and using it but that requires certain IAM permissions that I do not have. Is there an API way of fetching the bill/invoice details?

These are all the APIs related to billing [1] . As you can see there, they require certain IAM permissions that you may not have.

If you want, you can estimate pretty accurately the cost of a GCE VM [2] using the calculator [3] .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM