GoogleCloudPlatform / professional-services

Common solutions and tools developed by Google Cloud's Professional Services team. This repository and its contents are not an officially supported Google product.
Apache License 2.0
2.78k stars 1.32k forks source link

Billing Dashboard: "Permission Denied, check project level permission." #1033

Open frankShih opened 1 year ago

frankShih commented 1 year ago

Same as this issue

I have the same issue. I already export billing & billing_detail to the BQ dataset.

The first time, I got the expected result. Then I manually remove generated views & looker dashboard. (not the suggested way in the official document)

The second time, I reproduce the same process (actually, I just re-run step-4). It shows

Version of billboard.py  3.0

Permission Denied, check project level permission.

Besides, I try the same steps with my personal GCP account (permission: 'project owner'), and get the same result.

Is there any possible solution? Thanks in prior.

govargo commented 1 year ago

I faced same issue and I needed enabling Cloud Billing API(cloudbilling.googleapis.com). After enabling the API, It seemed resolved Permission Denied, check project level permission error.

Thank you

abdulaziz-git commented 8 months ago

I'm facing the same issue, and it solved by enabling Cloud Billing API(cloudbilling.googleapis.com) thanks @govargo

mhu-computas commented 7 months ago

Think this was checked for in v2, but this is not longer present in v3.

This is commented out in the source for some reason:

Check if billing api is enabled.

# service = discovery.build('serviceusage', 'v1')
# request = service.services().get(
#     name=f"{project_id_temp}/services/cloudbilling.googleapis.com")
# response = request.execute()
# if response.get('state') == 'DISABLED':
#     print("Cloud Billing API is not enabled.")
#     return sys.exit(1)