通过撤消POST调用恢复云功能的默认服务帐户 [英] Recover Cloud functions default service account with the undelete POST call

查看:59
本文介绍了通过撤消POST调用恢复云功能的默认服务帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Google Cloud Functions很长时间了,目前还没有真正的身份验证问题.今天,我在部署新功能时遇到了这个错误

 错误:(gcloud.functions.deploy)ResponseError:状态= [400],代码= [错误请求],消息= [默认服务帐户'PROJECT-ID@appspot.gserviceaccount.com'没有存在.请重新创建此帐户(例如,通过禁用和启用Cloud Functions API),或指定其他帐户.] 

我尝试了几件事:

  • 禁用/启用GCF API:未恢复任何服务帐户
  • gcloud beta应用程序修复

    I have used Google Cloud Functions for quite a long time, with no real authentication problem for now. Today I meet this error while deploying a new function

    ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Bad Request], message=[Default service account 'PROJECT-ID@appspot.gserviceaccount.com' doesn't exist. Please recreate this account (for example by disabling and enabling the Cloud Functions API), or specify a different account.]
    

    I tried several things :

    If I understand well the current GCP features, using the last option is my best solution, but somehow I keep getting a 400 error

    I found my unique-id in my log activity at the creation of the default service account

    I really can't see where is the problem in the undelete API call and would be really thankful if you could help with it

    解决方案

    Thanks to @Maxim, I know now that my problem comes from the fact that the deleting of this service account happened more than 30 days ago. Which means that it has already been purged from the system and it's not recoverable anymore.

    In case you meet this same kind of problem, please try out this link : https://cloud.google.com/iam/docs/creating-managing-service-accounts#undeleting_a_service_account

    这篇关于通过撤消POST调用恢复云功能的默认服务帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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