gcloud - 通过 gcloud Preview 应用删除模块时出现 403 状态

标签 gcloud

我目前使用 gcloud preview app modules delete <module_name> --version <version_to_delete>使用服务帐户来清理托管虚拟机的旧模块版本。直到上周为止,这一直运作良好。我现在收到以下错误。

ERROR: (gcloud.preview.app.modules.delete) Error Response: [403] Project has not enabled the API. Please use Google Developers Console to activate the API for your project.
Details: [[{"@type": "type.googleapis.com/google.rpc.Help", "links": [{"description": "Google developer console API activation", "url": "https://console.developers.google.com/project/<project_id>/apiui/api"}]}]]

更多细节:

  1. 使用我的 Google 个人帐户可以删除模块版本
  2. 我目前将服务帐户设置为 gcloud auth activate-service-account <some_id>@developer.gserviceaccount.com --key-file gcloud.json

最佳答案

您必须在开发者控制台中启用“App Engine Admin API”才能使用服务帐户删除模块:

  1. 转到https://console.developers.google.com/
  2. 导航至 API 和身份验证 > API
  3. 查找并启用“App Engine Admin API”

关于gcloud - 通过 gcloud Preview 应用删除模块时出现 403 状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32984986/

相关文章:

google-cloud-storage - 它是更改现有对象存储类别的计费操作吗?

parameters - 在 google dataproc 上执行 Pig 作业时,如何使用 params 标志来表示多个以逗号分隔的值?

linux - 使用 gcloud compute copy-files 仅复制差异(新)文件

google-app-engine - gcloud:运行错误 应用程序不存在

google-cloud-platform - 如何立即删除 GCP 项目?

docker - Kubernetes Pod在调用具有未知证书颁发机构的Google Cloud pub/sub时失败

linux - 如何在 gcloud linux 命令上自动插入输入

node.js - NodeJS gcloud - 使用公共(public)读取属性/自定义缓存过期上传到谷歌存储

android - 使用 android studio 应用程序连接到谷歌云 mysql

node.js - 将缓冲区上传到谷歌云存储