【发布时间】:2020-11-30 12:06:13
【问题描述】:
我有一个使用访问范围“为每个 API 设置访问权限”的实例运行,并明确允许 Compute Engine API 具有读写访问权限,如下图所示。
所以我通过 SSH 登录到实例内部,并尝试运行以下命令:-
gcloud compute instances list
我得到一个错误:
- Required 'compute.zones.list' permission for 'projects/dotted-hxxl-xxx'
我的用户明确允许访问计算引擎 API,但我仍然收到错误消息。我不应该得到这个错误吗?我在这里错过了什么?
【问题讨论】:
标签: google-cloud-platform google-compute-engine google-compute-api