Keystone Role documentation

Asked by Fatih Güçlü Akkaya

Hi,

Where can I find any documentation regarding Keystone > Roles v2.0 APIs?

Thanks,

Maty.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Solved by:
Joseph Heck
Solved:
Last query:
Last reply:
Revision history for this message
Best Joseph Heck (heckj) said :
#1

Creating roles and assigning to user & tenants is definitely supported, and is a bit convoluted under the covers of the V2.0 REST API. I'd recommend doing the adding using the python-keystoneclient command line interface (install python-keystoneclient with "python setup.py install", and then you have a command "keystone" which does a lot of the command line interactions.

There's bugs with it (current list at http://adam.younglogic.com/2012/02/openstack-keystone-ldap-redux/), but currently if you add --debug, it does show you the details of the HTTP request and response used to enable that functionality.

Revision history for this message
Fatih Güçlü Akkaya (gucluakkaya) said :
#2

Thanks Joseph Heck, that solved my question.

Revision history for this message
Rahul Bhardwaj (bhardwaj-rahul20) said :
#3

Hi,
I am trying to do the same thing from my python script. I tried to do it from add_user function in tenants.py and also add_user_role in roles.py(which is actually called from add_user function) but I am getting a 404-resource not found. Also the format in which tenant, user and role id are described is also missing. Horizon directly passes ids, probably as integers or some other format(which I am unable to find) but add_user_role does a base.getid on all so, a direct passing of integers will always throw an error, right?
Any insights?
Thanks

Revision history for this message
adapaka bhavaniprasad (adapaka-prasad) said :
#4

Hi,

I am familiar with keystone role such as member, admin.
Both the roles has different access permissions. can anybody guide on complete roles in keystone ??
Admin role is admin for specific project. i want to be a role which is admin of all keystone tenants.

please send any links .

thanks in advance.