如何恢复 Google App Engine 的“默认服务帐户" [英] How to recover Google App Engine's "default service account"

查看:27
本文介绍了如何恢复 Google App Engine 的“默认服务帐户"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我错误地删除了我项目的默认应用引擎服务帐户" - {id}@appspot.gserviceaccount.com有没有办法在不重置/重新创建 Google Cloud Platform 上的项目的情况下恢复它?

I have mistakenly deleted the default "app engine service account" for my project - {id}@appspot.gserviceaccount.com Is there a way to recover it without resetting/recreating my project on Google Cloud Platform?

推荐答案

很遗憾,目前无法恢复默认的 App Engine 服务帐户.解决方案就像你说的创建一个新项目并在那里重新部署你的代码.

如果您希望将来阻止此删除操作或重新创建默认服务帐户,我强烈建议您在 App Engine 公共问题跟踪器,同时将此示例作为业务案例提供.

Should you wish to see this deletion prevented or default service account recreation made possible in the future, I strongly urge you to file a feature request on the App Engine public issue tracker while providing this example as a business case.

更新:正如 OP 提交的那样,App Engine 公共问题跟踪器上现在存在一个功能请求,名称为 问题 13085.请星标此问题以接收有关其进展的更新.

UPDATE: As filed by the OP, a feature request now exists on the App Engine public issue tracker as Issue 13085. Please star this issue to receive updates on its progress.

更新 2:作为 App Engine 管理员的一部分API,现在可以使用 apps.repair API 尝试解决默认 Cloud Storage 存储分区和 App Engine 服务帐户的问题.我建议在创建新项目和重新部署之前尝试这个 API.我将此作为附录而不是主要解决方案,因为它不能保证解决问题.

UPDATE 2: As part of the App Engine Admin API, one can now use the apps.repair API to attempt to address issues of default Cloud Storage buckets and App Engine service accounts. I would recommend trying this API before creating a new project and redeploying. I'm leaving this as an addendum and not the primary solution as it's not guaranteed to solve the issue.

UPDATE 3 现在可以取消删除服务帐户.根据取消删除服务帐户文档,在以下情况下可能会恢复服务帐户:

UPDATE 3 It is now possible to undelete service accounts. As per the Undeleting a service account documentation, a service account may be restored if:

服务帐号在不到 30 天前被删除

The service account was deleted less than 30 days ago

没有与删除的服务帐户同名的现有服务帐户.

There is no existing service account with the same name as the deleted service account.

这篇关于如何恢复 Google App Engine 的“默认服务帐户"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆