简体   繁体   English

访问发布/订阅时出现 403 错误

[英]Getting 403 error while accessing pubs/sub

I'm getting below error when i'm trying to access google pubsub via python library.当我尝试通过 python 库访问 google pubsub 时出现以下错误。

HttpError 403 when requesting https://monitoring.googleapis.com/v3/projects/xxxx/timeSeries?filter=metric.type%3D%22pubsub.googleapis.com%2Fsubscription%2Fnum_undelivered_messages%22+AND+resource.label.subscription_id%3Dtest&interval.endTime=2018-08-28T13%3A11%3A58.256545Z&alt=json&interval.startTime=2018-08-28T13%3A10%3A58.256533Z returned "The caller does not have permission"请求https://monitoring.googleapis.com/v3/projects/xxxx/timeSeries?filter=metric.type%3D%22pubsub.googleapis.com%2Fsubscription%2Fnum_undelivered_messages%22+AND+resource.label.subscription_id%时出现 HttpError 403 3Dtest&interval.endTime=2018-08-28T13%3A11%3A58.256545Z&alt=json&interval.startTime=2018-08-28T13%3A10%3A58.256533Z返回“调用者没有权限”

Below is the scenario which i'm trying:以下是我正在尝试的场景:

Can somebody help me what I'm missing here?有人可以帮助我在这里缺少什么吗?

I had the same access issues.我有同样的访问问题。 Your account needs access to the role "Monitoring Viewer".您的帐户需要访问角色“Monitoring Viewer”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 访问 firebase 用户的 photoURL 时出现 http 403 错误 - Getting http 403 error while accessing photoURL of a firebase User 访问 Google Chrome 时出现 403 禁止错误 Web 商店 API - Getting 403 Forbidden Error While Accessing Google Chrome Web Store API 使用 pip 安装 package 时出现错误 403 - Getting error 403 while installing package with pip 即使在指定用户代理后从 AWS 访问“https://www.sec.gov/”时出现 403 错误 - Getting 403 error while accessing "https://www.sec.gov/" from AWS even after specifying user agent 使用 Spark 访问 s3a 时出现 403 错误 - 403 Error while accessing s3a using Spark 使用 Spark/hadoop 访问 s3a 时出现 403 错误 - 403 Error while accessing s3a using Spark/hadoop 通过 python 访问 API 得到一个奇怪的错误 403 禁止 - Getting a strange error 403 forbidden for accessing an API through python 尝试创建子用户时 sendgrid 错误“403 访问被禁止” - sendgrid error "403 access forbidden" when trying to create sub user 当我尝试通过浏览器访问 Cloudrun URL 时得到 403 - Getting 403 while i try to access Cloudrun URL through browser 访问 sqs 时访问被拒绝 - Getting access denied while accessing the sqs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM