Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frankShih opened this issue May 30, 2023 · 3 comments
Open

Comments

@frankShih
Copy link

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
Copy link

govargo commented Jun 6, 2023

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
Copy link

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

@mhu-computas
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants