keystone.api.domains module¶
- class keystone.api.domains.DefaultConfigGroupResource[source]¶
Bases:
flask_restful.Resource
- get(group=None)[source]¶
Get default domain group config.
GET/HEAD /v3/domains/config/{group}/default
- methods: Optional[List[str]] = {'GET'}¶
A list of methods this view can handle.
- class keystone.api.domains.DefaultConfigOptionResource[source]¶
Bases:
flask_restful.Resource
- get(group=None, option=None)[source]¶
Get default domain group option config.
GET/HEAD /v3/domains/config/{group}/{option}/default
- methods: Optional[List[str]] = {'GET'}¶
A list of methods this view can handle.
- class keystone.api.domains.DefaultConfigResource[source]¶
Bases:
flask_restful.Resource
- methods: Optional[List[str]] = {'GET'}¶
A list of methods this view can handle.
- class keystone.api.domains.DomainAPI(blueprint_url_prefix='', api_url_prefix='', default_mediatype='application/json', decorators=None, errors=None)[source]¶
Bases:
keystone.server.flask.common.
- CONFIG_GROUP = 'https://docs.openstack.org/api/openstack-identity/3/param/config_group'¶
- CONFIG_OPTION = 'https://docs.openstack.org/api/openstack-identity/3/param/config_option'¶
- resource_mapping = [resource_map(resource=<class 'keystone.api.domains.DomainConfigResource'>, url='/domains/<string:domain_id>/config', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/domain_config', status='stable', path_vars={'domain_id': 'https://docs.openstack.org/api/openstack-identity/3/param/domain_id'})), resource_map(resource=<class 'keystone.api.domains.DomainConfigGroupResource'>, url='/domains/<string:domain_id>/config/<string:group>', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/domain_config_group', status='stable', path_vars={'domain_id': 'https://docs.openstack.org/api/openstack-identity/3/param/domain_id', 'group': 'https://docs.openstack.org/api/openstack-identity/3/param/config_group'})), resource_map(resource=<class 'keystone.api.domains.DomainConfigOptionResource'>, url='/domains/<string:domain_id>/config/<string:group>/<string:option>', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/domain_config_option', status='stable', path_vars={'domain_id': 'https://docs.openstack.org/api/openstack-identity/3/param/domain_id', 'group': 'https://docs.openstack.org/api/openstack-identity/3/param/config_group', 'option': 'https://docs.openstack.org/api/openstack-identity/3/param/config_option'})), resource_map(resource=<class 'keystone.api.domains.DefaultConfigResource'>, url='/domains/config/default', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/domain_config_default', status='stable', path_vars={})), resource_map(resource=<class 'keystone.api.domains.DefaultConfigGroupResource'>, url='/domains/config/<string:group>/default', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/domain_config_default_group', status='stable', path_vars={'group': 'https://docs.openstack.org/api/openstack-identity/3/param/config_group'})), resource_map(resource=<class 'keystone.api.domains.DefaultConfigOptionResource'>, url='/domains/config/<string:group>/<string:option>/default', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/domain_config_default_option', status='stable', path_vars={'group': 'https://docs.openstack.org/api/openstack-identity/3/param/config_group', 'option': 'https://docs.openstack.org/api/openstack-identity/3/param/config_option'})), resource_map(resource=<class 'keystone.api.domains.DomainUserListResource'>, url='/domains/<string:domain_id>/users/<string:user_id>/roles', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/domain_user_roles', status='stable', path_vars={'domain_id': 'https://docs.openstack.org/api/openstack-identity/3/param/domain_id', 'user_id': 'https://docs.openstack.org/api/openstack-identity/3/param/user_id'})), resource_map(resource=<class 'keystone.api.domains.DomainUserResource'>, url='/domains/<string:domain_id>/users/<string:user_id>/roles/<string:role_id>', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/domain_user_role', status='stable', path_vars={'domain_id': 'https://docs.openstack.org/api/openstack-identity/3/param/domain_id', 'user_id': 'https://docs.openstack.org/api/openstack-identity/3/param/user_id', 'role_id': 'https://docs.openstack.org/api/openstack-identity/3/param/role_id'})), resource_map(resource=<class 'keystone.api.domains.DomainGroupListResource'>, url='/domains/<string:domain_id>/groups/<string:group_id>/roles', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/domain_group_roles', status='stable', path_vars={'domain_id': 'https://docs.openstack.org/api/openstack-identity/3/param/domain_id', 'group_id': 'https://docs.openstack.org/api/openstack-identity/3/param/group_id'})), resource_map(resource=<class 'keystone.api.domains.DomainGroupResource'>, url='/domains/<string:domain_id>/groups/<string:group_id>/roles/<string:role_id>', alternate_urls=None, kwargs={}, json_home_data=json_home_data(rel='https://docs.openstack.org/api/openstack-identity/3/rel/domain_group_role', status='stable', path_vars={'domain_id': 'https://docs.openstack.org/api/openstack-identity/3/param/domain_id', 'group_id': 'https://docs.openstack.org/api/openstack-identity/3/param/group_id', 'role_id': 'https://docs.openstack.org/api/openstack-identity/3/param/role_id'}))]¶
- resources = [<class 'keystone.api.domains.DomainResource'>]¶
- class keystone.api.domains.DomainConfigBase[source]¶
Bases:
keystone.server.flask.common.ResourceBase
- delete(domain_id=None, group=None, option=None)[source]¶
Delete domain config.
DELETE /v3/domains/{domain_id}/config DELETE /v3/domains/{domain_id}/config/{group} DELETE /v3/domains/{domain_id}/config/{group}/{option}
- get(domain_id=None, group=None, option=None)[source]¶
Check if config option exists.
GET/HEAD /v3/domains/{domain_id}/config GET/HEAD /v3/domains/{domain_id}/config/{group} GET/HEAD /v3/domains/{domain_id}/config/{group}/{option}
- member_key = 'config'¶
- methods: Optional[List[str]] = {'DELETE', 'GET', 'PATCH'}¶
A list of methods this view can handle.
- class keystone.api.domains.DomainConfigGroupResource[source]¶
Bases:
keystone.api.domains.DomainConfigBase
Provides config group routing functionality.
This class leans on DomainConfigBase to provide the following APIs:
GET/HEAD /v3/domains/{domain_id}/config/{group} PATCH /v3/domains/{domain_id}/config/{group} DELETE /v3/domains/{domain_id}/config/{group}
- methods: Optional[List[str]] = {'DELETE', 'GET', 'PATCH'}¶
A list of methods this view can handle.
- class keystone.api.domains.DomainConfigOptionResource[source]¶
Bases:
keystone.api.domains.DomainConfigBase
Provides config option routing functionality.
This class leans on DomainConfigBase to provide the following APIs:
GET/HEAD /v3/domains/{domain_id}/config/{group}/{option} PATCH /v3/domains/{domain_id}/config/{group}/{option} DELETE /v3/domains/{domain_id}/config/{group}/{option}
- methods: Optional[List[str]] = {'DELETE', 'GET', 'PATCH'}¶
A list of methods this view can handle.
- class keystone.api.domains.DomainConfigResource[source]¶
Bases:
keystone.api.domains.DomainConfigBase
Provides config routing functionality.
This class leans on DomainConfigBase to provide the following APIs:
GET/HEAD /v3/domains/{domain_id}/config PATCH /v3/domains/{domain_id}/config DELETE /v3/domains/{domain_id}/config
- methods: Optional[List[str]] = {'DELETE', 'GET', 'PATCH', 'PUT'}¶
A list of methods this view can handle.
- class keystone.api.domains.DomainGroupListResource[source]¶
Bases:
flask_restful.Resource
- get(domain_id=None, group_id=None)[source]¶
List all domain grats for a specific group.
GET/HEAD /v3/domains/{domain_id}/groups/{group_id}/roles
- methods: Optional[List[str]] = {'GET'}¶
A list of methods this view can handle.
- class keystone.api.domains.DomainGroupResource[source]¶
Bases:
keystone.server.flask.common.ResourceBase
- collection_key = 'grants'¶
- delete(domain_id=None, group_id=None, role_id=None)[source]¶
Revoke a role from a group on a domain.
DELETE /v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}
- get(domain_id=None, group_id=None, role_id=None)[source]¶
Check if a group has a specific role on a domain.
GET/HEAD /v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}
- member_key = 'grant'¶
- methods: Optional[List[str]] = {'DELETE', 'GET', 'PUT'}¶
A list of methods this view can handle.
- class keystone.api.domains.DomainResource[source]¶
Bases:
keystone.server.flask.common.ResourceBase
- collection_key = 'domains'¶
- get(domain_id=None)[source]¶
Get domain or list domains.
GET/HEAD /v3/domains GET/HEAD /v3/domains/{domain_id}
- get_member_from_driver¶
- member_key = 'domain'¶
- methods: Optional[List[str]] = {'DELETE', 'GET', 'PATCH', 'POST'}¶
A list of methods this view can handle.
- class keystone.api.domains.DomainUserListResource[source]¶
Bases:
flask_restful.Resource
- get(domain_id=None, user_id=None)[source]¶
Get user grant.
GET/HEAD /v3/domains/{domain_id}/users/{user_id}/roles
- methods: Optional[List[str]] = {'GET'}¶
A list of methods this view can handle.
- class keystone.api.domains.DomainUserResource[source]¶
Bases:
keystone.server.flask.common.ResourceBase
- collection_key = 'grants'¶
- delete(domain_id=None, user_id=None, role_id=None)[source]¶
Revoke a role from user on a domain.
DELETE /v3/domains/{domain_id}/users/{user_id}/roles/{role_id}
- get(domain_id=None, user_id=None, role_id=None)[source]¶
Check if a user has a specific role on the domain.
GET/HEAD /v3/domains/{domain_id}/users/{user_id}/roles/{role_id}
- member_key = 'grant'¶
- methods: Optional[List[str]] = {'DELETE', 'GET', 'PUT'}¶
A list of methods this view can handle.