Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to gain authorization to perform requested action, specifically create an instance of a service in Bluemix?

I am following the Developing Watson Applications with BlueMix tutorial but for some reason when attempting to create an instance via

cf create-service DataCache free DataCacheInst

I get the following error:

FAILED 
Server error, status code: 403, error code: 10003, 
message: You are not authorized to perform the requested action

As per the error message I do not have privileges, but I am unsure as to why this is being that I can successfully login with my bluemix credentials, see the marketplace services as instructed in the tutorial, and furthermore when entering the command

cf org-users MyOrgName

the output is emtpy as though there is no assigned manager whatsoever; output:

ORG MANAGER


BILLING MANAGER

ORG AUDITOR

Stubbornly, when attempting to set myself as the OrgManager like so,

cf set-org-role Username MyOrgName OrgManager

I am presented with the following error:

FAILED 
Server error, status code: 403: Access is denied.  
You do not have privileges to execute this command.

Please advise on how to resolve this issue, thank you in advance!

like image 476
Reah Avatar asked Sep 28 '22 16:09

Reah


1 Answers

The cause of your original error is that your likely don't have the SpaceDeveloper role in the space where you are trying to create the service. Currently, the space and org management functions are disabled on the CLI [in order to maintain multi region consistency], so go into the Console webui, select your organization name and then "Manage Organizations". This will allow you to set org and space membership and roles.

like image 92
Brian Martin Avatar answered Oct 06 '22 00:10

Brian Martin