keystone.api.domains module
updated: 2023-04-14 08:07
keystone.api.domains module
-
class keystone.api.domains.DefaultConfigGroupResource[source]
Bases: Resource
-
get(group=None)[source]
Get default domain group config.
GET/HEAD /v3/domains/config/{group}/default
-
methods: t.ClassVar[t.Optional[t.Collection[str]]] = {'GET'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
class keystone.api.domains.DefaultConfigOptionResource[source]
Bases: Resource
-
get(group=None, option=None)[source]
Get default domain group option config.
GET/HEAD /v3/domains/config/{group}/{option}/default
-
methods: t.ClassVar[t.Optional[t.Collection[str]]] = {'GET'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
class keystone.api.domains.DefaultConfigResource[source]
Bases: Resource
-
get()[source]
Get default domain config.
GET/HEAD /v3/domains/config/default
-
methods: t.ClassVar[t.Optional[t.Collection[str]]] = {'GET'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
class keystone.api.domains.DomainAPI(blueprint_url_prefix='', api_url_prefix='', default_mediatype='application/json', decorators=None, errors=None)[source]
Bases: APIBase
-
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: 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: t.ClassVar[t.Optional[t.Collection[str]]] = {'DELETE', 'GET', 'PATCH'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
patch(domain_id=None, group=None, option=None)[source]
Update domain config option.
PATCH /v3/domains/{domain_id}/config
PATCH /v3/domains/{domain_id}/config/{group}
PATCH /v3/domains/{domain_id}/config/{group}/{option}
-
class keystone.api.domains.DomainConfigGroupResource[source]
Bases: 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: t.ClassVar[t.Optional[t.Collection[str]]] = {'DELETE', 'GET', 'PATCH'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
class keystone.api.domains.DomainConfigOptionResource[source]
Bases: 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: t.ClassVar[t.Optional[t.Collection[str]]] = {'DELETE', 'GET', 'PATCH'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
class keystone.api.domains.DomainConfigResource[source]
Bases: 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: t.ClassVar[t.Optional[t.Collection[str]]] = {'DELETE', 'GET', 'PATCH', 'PUT'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
put(domain_id)[source]
Create domain config.
PUT /v3/domains/{domain_id}/config
-
class keystone.api.domains.DomainGroupListResource[source]
Bases: 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: t.ClassVar[t.Optional[t.Collection[str]]] = {'GET'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
class keystone.api.domains.DomainGroupResource[source]
Bases: 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: t.ClassVar[t.Optional[t.Collection[str]]] = {'DELETE', 'GET', 'PUT'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
put(domain_id=None, group_id=None, role_id=None)[source]
Grant a role to a group on a domain.
PUT /v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}
-
class keystone.api.domains.DomainResource[source]
Bases: ResourceBase
-
collection_key = 'domains'
-
delete(domain_id)[source]
Delete domain.
DELETE /v3/domains/{domain_id}
-
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: t.ClassVar[t.Optional[t.Collection[str]]] = {'DELETE', 'GET', 'PATCH', 'POST'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
patch(domain_id)[source]
Update domain.
PATCH /v3/domains/{domain_id}
-
post()[source]
Create domain.
POST /v3/domains
-
class keystone.api.domains.DomainUserListResource[source]
Bases: Resource
-
get(domain_id=None, user_id=None)[source]
Get user grant.
GET/HEAD /v3/domains/{domain_id}/users/{user_id}/roles
-
methods: t.ClassVar[t.Optional[t.Collection[str]]] = {'GET'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
class keystone.api.domains.DomainUserResource[source]
Bases: 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: t.ClassVar[t.Optional[t.Collection[str]]] = {'DELETE', 'GET', 'PUT'}
The methods this view is registered for. Uses the same default
(["GET", "HEAD", "OPTIONS"]
) as route
and
add_url_rule
by default.
-
put(domain_id=None, user_id=None, role_id=None)[source]
Create a role to a user on a domain.
PUT /v3/domains/{domain_id}/users/{user_id}/roles/{role_id}
updated: 2023-04-14 08:07