[英]I can't delete my project on google cloud platform
I can not delete my project on Google Cloud Platform
with error 我无法在错误的情况下删除我在Google Cloud Platform
上的项目
Not enough permissions. 没有足够的权限。
I tried to find the owner of the project through the command: 我试图通过以下命令找到项目的所有者:
gcloud projects get-iam-policy [PROJECT-ID]
But it still get error 但是还是会报错
ERROR: (gcloud.projects.get-iam-policy) User [user@gmail.com] does not have permission to access project [PROJECT-ID: getIamPolicy] (or it may not exist): The caller does not have permission
NOTE: The PROJECT-ID and user@gmail.com are not real 注意: PROJECT-ID和user@gmail.com不是真实的
How to solve? 怎么解决?
as the documentation states, you need to have the resourcemanager.projects.delete
role assigned in Cloud IAM (while not being the project's owner)... then executing gcloud projects delete
would flag that project for shutdown and it would be deleted after a while. 如文档所述,您需要在Cloud IAM中分配resourcemanager.projects.delete
角色(而不是项目的所有者)...然后执行gcloud projects delete
会将该项目标记为关闭,并在一段时间后将其删除。 just as you would need role resourcemanager.projects.getIamPolicy
in order to list the project's IAM
policies. 就像您需要角色resourcemanager.projects.getIamPolicy
,以列出项目的IAM
策略。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.