“呼叫者没有权限”使用节点gcloud创建新项目时出错 [英] "The caller does not have permission" error when creating new project using node gcloud

查看:210
本文介绍了“呼叫者没有权限”使用节点gcloud创建新项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用node.js google api(npm gcloud包)来创建一个新项目。这是一个测试版API。
我得到一个错误:调用者没有权限
stack:

I'm using node.js google api (npm gcloud package) to create a new project. this is a beta API. I'm getting an error: "The caller does not have permission" stack:


ApiError:The调用者在新的util.ApiError(C:\app\bundle\a2\\\
ode_modules\gcloud\lib\common\util.js:92:10)时没有权限

在Object.parseHttpRespBody(C:\app\bundle\a2\\\
ode_modules\gcloud\lib\common\util.js:170:30)
在Object.handleResp(C :\app\bundle\a2\\\
ode_modules\gcloud\lib\common\util.js:110:18)
在C:\app\bundle\a2\ node_modules \gcloud\lib\common\util.js:422:12
在Request.onResponse [as _callback](C:\app\bundle\a2\\\
ode_modules\gcloud\\ \\ nnode_modules \retry-request \index.js:117:7)
在Request.init.self.callback(C:\app\bundle\a2\\\
ode_modules\gcloud\ node_modules \request\request.js:199:22)$ Request $ Request(Request.mits:110:17)
$ Request
。 (C:\ app\bundle\a2\\\
ode_modules\gcloud\\\
ode_modules\request\request.js:1036:10)
在Request.emit(events.js:129:20 )IncomingMessage
。 (C:\app\bundle\a2\\\
ode_modules\gcloud\\\
ode_modules\request\request.js:963:12)

ApiError: The caller does not have permission at new util.ApiError (C:\app\bundle\a2\node_modules\gcloud\lib\common\util.js:92:10) at Object.parseHttpRespBody (C:\app\bundle\a2\node_modules\gcloud\lib\common\util.js:170:30) at Object.handleResp (C:\app\bundle\a2\node_modules\gcloud\lib\common\util.js:110:18) at C:\app\bundle\a2\node_modules\gcloud\lib\common\util.js:422:12 at Request.onResponse [as _callback] (C:\app\bundle\a2\node_modules\gcloud\node_modules\retry-request\index.js:117:7) at Request.init.self.callback (C:\app\bundle\a2\node_modules\gcloud\node_modules\request\request.js:199:22) at Request.emit (events.js:110:17) at Request. (C:\app\bundle\a2\node_modules\gcloud\node_modules\request\request.js:1036:10) at Request.emit (events.js:129:20) at IncomingMessage. (C:\app\bundle\a2\node_modules\gcloud\node_modules\request\request.js:963:12)

我已经启用了Google云资源管理器API。
其他呼叫工作正常。
可能是什么问题?

I already enabled "Google Cloud Resource Manager API". Other calls works OK. What may be the problem?

推荐答案

云资源管理器的 projects.create code>方法仅根据其文档邀请

The Cloud Resource Manager's projects.create method is invite only per their documentation:


projects.create()方法位于Alpha阶段。它可能以后向不相容的方式进行更改,不建议用于生产用途。它不受任何SLA或弃用政策的约束。此功能目前仅限邀请。如需邀请,请联系我们的销售团队。

The projects.create() method is in the Alpha stage. It might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. Access to this feature is currently invite-only. For an invitation, contact our sales team.

这篇关于“呼叫者没有权限”使用节点gcloud创建新项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆