Keystone Role documentation

Asked by Fatih Güçlü Akkaya on 2012-02-14

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:
2012-04-13
Last query:
2012-04-13
Last reply:
2012-02-19
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.

Thanks Joseph Heck, that solved my question.

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

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.