keystone.api.groups module¶
-
class
keystone.api.groups.
GroupAPI
(blueprint_url_prefix='', api_url_prefix='', default_mediatype='application/json', decorators=None, errors=None)[source]¶ Bases:
keystone.server.flask.common.APIBase
-
resource_mapping
= [resource_map(resource=<class 'keystone.api.groups.GroupUsersResource'>, url='/groups/<string:group_id>/users', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/group_users', status='stable', path_vars={'group_id': 'https://docs.openstack.org/api/openstack-identity/3/param/group_id'})), resource_map(resource=<class 'keystone.api.groups.UserGroupCRUDResource'>, url='/groups/<string:group_id>/users/<string:user_id>', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/group_user', status='stable', path_vars={'group_id': 'https://docs.openstack.org/api/openstack-identity/3/param/group_id', 'user_id': 'https://docs.openstack.org/api/openstack-identity/3/param/user_id'}))]¶
-
resources
= [<class 'keystone.api.groups.GroupsResource'>]¶
-
-
class
keystone.api.groups.
GroupUsersResource
[source]¶ Bases:
keystone.server.flask.common.ResourceBase
-
methods
= {'GET'}¶ A list of methods this view can handle.
-
-
class
keystone.api.groups.
GroupsResource
[source]¶ Bases:
keystone.server.flask.common.ResourceBase
-
collection_key
= 'groups'¶
-
get_member_from_driver
¶
-
member_key
= 'group'¶
-
methods
= {'DELETE', 'GET', 'PATCH', 'POST'}¶ A list of methods this view can handle.
-
-
class
keystone.api.groups.
UserGroupCRUDResource
[source]¶ Bases:
flask_restful.Resource
-
delete
(group_id, user_id)[source]¶ Remove user from group.
DELETE /groups/{group_id}/users/{user_id}
-
get
(group_id, user_id)[source]¶ Check if a user is in a group.
GET/HEAD /groups/{group_id}/users/{user_id}
-
methods
= {'DELETE', 'GET', 'PUT'}¶ A list of methods this view can handle.
-