组织政策禁止GCP请求

发布于 2025-02-09 03:39:04 字数 452 浏览 3 评论 0原文

我正在尝试从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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

同展鸳鸯锦 2025-02-16 03:39:04

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文