如何获得执行请求操作的授权,特别是在 Bluemix 中创建服务实例?
How to gain authorization to perform requested action, specifically create an instance of a service in Bluemix?
我正在关注 Developing Watson Applications with BlueMix tutorial,但出于某种原因,在尝试通过
创建实例时
cf create-service DataCache free DataCacheInst
我收到以下错误:
FAILED
Server error, status code: 403, error code: 10003,
message: You are not authorized to perform the requested action
根据错误消息,我没有权限,但我不确定为什么我可以使用我的 bluemix 凭据成功登录,按照教程中的说明查看市场服务,而且在进入时命令
cf org-users MyOrgName
输出是空的,好像没有任何指定的经理;输出:
ORG MANAGER
BILLING MANAGER
ORG AUDITOR
顽固地,当我试图像这样将自己设置为 OrgManager 时,
cf set-org-role Username MyOrgName OrgManager
我收到以下错误:
FAILED
Server error, status code: 403: Access is denied.
You do not have privileges to execute this command.
请指教如何解决这个问题,先谢谢了!
您尝试通过以下命令使用命令行工具登录:
cf login
我对你的命令没问题。
您的原始错误的原因是您在尝试创建服务的 space 中可能没有 SpaceDeveloper 角色。目前,space 和组织管理功能在 CLI 上被禁用 [为了保持多区域一致性],因此进入控制台 webui,select 您的组织名称,然后 "Manage Organizations"。这将允许您设置组织和 space 成员资格和角色。
我正在关注 Developing Watson Applications with BlueMix tutorial,但出于某种原因,在尝试通过
创建实例时cf create-service DataCache free DataCacheInst
我收到以下错误:
FAILED
Server error, status code: 403, error code: 10003,
message: You are not authorized to perform the requested action
根据错误消息,我没有权限,但我不确定为什么我可以使用我的 bluemix 凭据成功登录,按照教程中的说明查看市场服务,而且在进入时命令
cf org-users MyOrgName
输出是空的,好像没有任何指定的经理;输出:
ORG MANAGER
BILLING MANAGER
ORG AUDITOR
顽固地,当我试图像这样将自己设置为 OrgManager 时,
cf set-org-role Username MyOrgName OrgManager
我收到以下错误:
FAILED
Server error, status code: 403: Access is denied.
You do not have privileges to execute this command.
请指教如何解决这个问题,先谢谢了!
您尝试通过以下命令使用命令行工具登录:
cf login
我对你的命令没问题。
您的原始错误的原因是您在尝试创建服务的 space 中可能没有 SpaceDeveloper 角色。目前,space 和组织管理功能在 CLI 上被禁用 [为了保持多区域一致性],因此进入控制台 webui,select 您的组织名称,然后 "Manage Organizations"。这将允许您设置组织和 space 成员资格和角色。