AskYous
AskYous

Reputation: 4720

What API can I use to see my GCP bill amount?

I would like to see my current bill on my GCP project. I tried using the Billing API and the Budget API but they just give me meta data information. No bill with costs on it. I would like to know the current bill cost for the month.

I know there is a Pub/Sub way to do this, but I don't want to get notified of the billing cost. I would like to see the bill cost when on demand.

Upvotes: 6

Views: 2168

Answers (1)

Mahboob
Mahboob

Reputation: 1955

At this moment as per the list of available 'Cloud billing APIs', GCP don't have such an API to view usage/total cost of a project. Here is the Feature Request for this.

As per the PIT there is no such API that would provide real-time billing cost and this is Feature Request as billing Engineering team working on this.

Upvotes: 8

Related Questions