Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License.
"""Previously known as the OS-KSADM extension.
Provides a bunch of CRUD operations for internal data types.
"""
# Tenant Operations '/tenants', controller=tenant_controller, action='create_project', conditions=dict(method=['POST'])) '/tenants/{tenant_id}', controller=tenant_controller, action='update_project', conditions=dict(method=['PUT', 'POST'])) '/tenants/{tenant_id}', controller=tenant_controller, action='delete_project', conditions=dict(method=['DELETE'])) '/tenants/{tenant_id}/users', controller=tenant_controller, action='get_project_users', conditions=dict(method=['GET']))
# User Operations '/users', controller=user_controller, action='get_users', conditions=dict(method=['GET'])) '/users', controller=user_controller, action='create_user', conditions=dict(method=['POST'])) # NOTE(termie): not in diablo '/users/{user_id}', controller=user_controller, action='update_user', conditions=dict(method=['PUT'])) '/users/{user_id}', controller=user_controller, action='delete_user', conditions=dict(method=['DELETE']))
# COMPAT(diablo): the copy with no OS-KSADM is from diablo '/users/{user_id}/password', controller=user_controller, action='set_user_password', conditions=dict(method=['PUT'])) '/users/{user_id}/OS-KSADM/password', controller=user_controller, action='set_user_password', conditions=dict(method=['PUT']))
# COMPAT(diablo): the copy with no OS-KSADM is from diablo '/users/{user_id}/tenant', controller=user_controller, action='update_user_project', conditions=dict(method=['PUT'])) '/users/{user_id}/OS-KSADM/tenant', controller=user_controller, action='update_user_project', conditions=dict(method=['PUT']))
# COMPAT(diablo): the copy with no OS-KSADM is from diablo '/users/{user_id}/enabled', controller=user_controller, action='set_user_enabled', conditions=dict(method=['PUT'])) '/users/{user_id}/OS-KSADM/enabled', controller=user_controller, action='set_user_enabled', conditions=dict(method=['PUT']))
# User Roles '/users/{user_id}/roles/OS-KSADM/{role_id}', controller=role_controller, action='add_role_to_user', conditions=dict(method=['PUT'])) '/users/{user_id}/roles/OS-KSADM/{role_id}', controller=role_controller, action='remove_role_from_user', conditions=dict(method=['DELETE']))
# COMPAT(diablo): User Roles '/users/{user_id}/roleRefs', controller=role_controller, action='get_role_refs', conditions=dict(method=['GET'])) '/users/{user_id}/roleRefs', controller=role_controller, action='create_role_ref', conditions=dict(method=['POST'])) '/users/{user_id}/roleRefs/{role_ref_id}', controller=role_controller, action='delete_role_ref', conditions=dict(method=['DELETE']))
# User-Tenant Roles '/tenants/{tenant_id}/users/{user_id}/roles/OS-KSADM/{role_id}', controller=role_controller, action='add_role_to_user', conditions=dict(method=['PUT'])) '/tenants/{tenant_id}/users/{user_id}/roles/OS-KSADM/{role_id}', controller=role_controller, action='remove_role_from_user', conditions=dict(method=['DELETE']))
# Service Operations '/OS-KSADM/services', controller=service_controller, action='get_services', conditions=dict(method=['GET'])) '/OS-KSADM/services', controller=service_controller, action='create_service', conditions=dict(method=['POST'])) '/OS-KSADM/services/{service_id}', controller=service_controller, action='delete_service', conditions=dict(method=['DELETE'])) '/OS-KSADM/services/{service_id}', controller=service_controller, action='get_service', conditions=dict(method=['GET']))
# Endpoint Templates '/endpoints', controller=endpoint_controller, action='get_endpoints', conditions=dict(method=['GET'])) '/endpoints', controller=endpoint_controller, action='create_endpoint', conditions=dict(method=['POST'])) '/endpoints/{endpoint_id}', controller=endpoint_controller, action='delete_endpoint', conditions=dict(method=['DELETE']))
# Role Operations '/OS-KSADM/roles', controller=role_controller, action='create_role', conditions=dict(method=['POST'])) '/OS-KSADM/roles', controller=role_controller, action='get_roles', conditions=dict(method=['GET'])) '/OS-KSADM/roles/{role_id}', controller=role_controller, action='get_role', conditions=dict(method=['GET'])) '/OS-KSADM/roles/{role_id}', controller=role_controller, action='delete_role', conditions=dict(method=['DELETE'])) |