Error executing gcloud

I have an error, when I run the Google Cloud team, this is the error message I receive

$ gcloud compute instances list NAME ZONE MACHINE_TYPE INTERNAL_IP EXTERNAL_IP STATUS ERROR: (gcloud.compute.instances.list) Some requests did not succeed: - Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration. 

I have two cars, and I have already upgraded to the new version.

+5
source share
4 answers

I don’t know if you are facing this problem, but if you specify the project name instead of the project identifier, when you run the “gcloud config set project”, then you will get the message “Access Not Configured”. I pointed to IRC # gcloud, so I hope it fixes. There may be other problems like this, so it is best that your settings are normal.

+6
source

If your project has not been flagged for abuse and / or deletion, you need to include the Google Compute Engine API in the Developer Console to solve the problem.

+3
source

Customize your project using the following command

 gcloud config set project <project-id> 
+1
source

This is exactly the API we need to enable in order to get rid of this error.

Compute Engine API

0
source

Source: https://habr.com/ru/post/1206771/


All Articles