我目前正在使用
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"}]}]]
更多细节:
gcloud auth activate-service-account <some_id>@developer.gserviceaccount.com --key-file gcloud.json
答案 0 :(得分:3)
您必须在开发者控制台中启用“App Engine Admin API”才能使用服务帐户删除模块: