Ask Your Question
0

keystoneclient users.update_tenant equivalent in keystone v3

asked 2016-03-15 02:30:07 -0500

yee379 gravatar image

updated 2016-03-15 03:13:11 -0500

Hi, I have python code for keystone v2.0 which looks like this:

kstone.users.update_tenant(user_id, tenant_id)
kstone.roles.roles_for_user(user=user_id, tenant=tenant_id)
kstone.roles.add_user_role(user_id, role_id, tenant_id)
kstone.roles.remove_user_role(user_id, role_id, tenant_id)
kstone.service_catalog

what are the equivalent methods in keystone v3?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-15 11:02:20 -0500

mpetason gravatar image

http://developer.openstack.org/api-re...

You'll need to change over "tenant_id" to project_id. You may also need to scope the domain, which should be "Default" or another domain if you created one.

edit flag offensive delete link more

Comments

thanks @mpetason, but my question was more specific to the python keystoneclient rather than the REST endpoints.

yee379 gravatar imageyee379 ( 2016-03-15 12:25:15 -0500 )edit

To interact with v3 you may want to look into the OpenStack client instead.

http://docs.openstack.org/developer/p...

mpetason gravatar imagempetason ( 2016-03-15 12:45:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-03-15 02:30:07 -0500

Seen: 30 times

Last updated: Mar 15 '16