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)

what are the equivalent methods in keystone v3?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

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

mpetason gravatar image

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


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.

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 87 times

Last updated: Mar 15 '16