组织政策禁止GCP请求
我正在尝试从GCP中提取一些信息。 I use this command gcloud asset search-all-resources --scope=projects/projID
But it gives me VPC_SERVICE_CONTROLS
error:
User does not have permission to access projects instance (or it may not exist): Request is prohibited by organization's policy.
I tried troubleshooting and checked all permissions but everything's fine.奇怪的事实是,它与其他项目和其他环境一起使用。我需要一些特殊的配置吗?
I'm trying to extract some information from GCP. I use this command gcloud asset search-all-resources --scope=projects/projID
But it gives me VPC_SERVICE_CONTROLS
error:
User does not have permission to access projects instance (or it may not exist): Request is prohibited by organization's policy.
I tried troubleshooting and checked all permissions but everything's fine. Strange fact is that it works with other projects and other environments. Do I need some special configurations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
continue
To search all cloud resources within the specified scope, the caller must be granted
cloudasset.assets.searchAllResources
permission on the desired scope (can be a project, a folder or an organization). If not specified, the configured project property will be used.By running,
gcloud config get project
you'll find the configured project and to change the project, run:gcloud config set project [PROJECT_ID]
You may find the official documentation here.