简体   繁体   English

Google Cloud DNS REST Api上的403错误

[英]403 Error on Google Cloud DNS REST Api

I am using the Google Cloud DNS REST API (with Ruby REST Client) and I am receiving a 403 error using my google service account. 我正在使用Google Cloud DNS REST API(与Ruby REST Client一起使用),并且使用我的Google Service帐户收到403错误。 This works correctly when I use the cloud console admin under my personal admin account. 当我在个人管理员帐户下使用云控制台管理员时,此方法可以正常工作。

My service account has "owner" permissions so I would think that I should not receive a 403 error. 我的服务帐户具有“所有者”权限,因此我认为我不应该收到403错误。

{"response":"{
"error  ": {     "errors  ": 
 [    {       "domain":   "global  ",
   "reason  ":   "forbidden  ",
   "message  ":   "Forbidden  "    }   ],
 "code  ": 403,
"message ":   "Forbidden  "   }

Unfortunately this error does not shed any light on why I am receiving a 403. 不幸的是,此错误并不能说明为什么我收到403。

There are 2 "Owner" permissions that are available in Google Cloud IAM console. Google Cloud IAM控制台中有2个“所有者”权限。

The correct one is accessed by clicking: 通过单击以下命令访问正确的地址:

IAM & Admin -> IAM -> [Your Service Account] -> (Roles Dropdown) -> Owner (Then Click Save) IAM和管理-> IAM-> [您的服务帐户]->(角色下拉列表)->所有者(然后单击“保存”)

The one that didn't help for me was at: 一个对我没有帮助的地方是:

IAM & Admin -> Service Accounts -> [Your Service Account] -> Permissions -> Add Member -> (Type in service account) -> (Select Owner Role) IAM和管理员->服务帐户-> [您的服务帐户]->权限->添加成员->(在服务帐户中键入)->(选择所有者角色)

I think that second one doesn't work? 我认为第二个不起作用? Or doesn't do anything. 还是什么都不做。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM