运行google cloud命令时出现错误,这是我收到的错误消息
$ 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.
我有两台机器正在运行,并且我已经更新到新版本。
最佳答案
我不知道您是否遇到此问题,但是如果在执行“gcloud config set project”时指定项目名称而不是项目ID,则当前将收到“未配置访问”错误。我已经在#gcloud IRC上指出了这一点,因此希望它可以解决。可能还存在其他类似问题,因此最好确保您的参数是合理的。
关于google-compute-engine - 执行gcloud时发生错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26901536/