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.Collection[str] | None] = {'GET'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_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.Collection[str] | None] = {'GET'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_url_rule
by default.
- class keystone.api.domains.DefaultConfigResource[source]¶
Bases:
Resource
- methods: t.ClassVar[t.Collection[str] | None] = {'GET'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_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 = [(<class 'keystone.api.domains.DomainConfigResource'>, '/domains/<string:domain_id>/config', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/domain_config', 'stable', {'domain_id': 'https://docs.openstack.org/api/openstack-identity/3/param/domain_id'})), (<class 'keystone.api.domains.DomainConfigGroupResource'>, '/domains/<string:domain_id>/config/<string:group>', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/domain_config_group', 'stable', {'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'})), (<class 'keystone.api.domains.DomainConfigOptionResource'>, '/domains/<string:domain_id>/config/<string:group>/<string:option>', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/domain_config_option', 'stable', {'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'})), (<class 'keystone.api.domains.DefaultConfigResource'>, '/domains/config/default', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/domain_config_default', 'stable', {})), (<class 'keystone.api.domains.DefaultConfigGroupResource'>, '/domains/config/<string:group>/default', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/domain_config_default_group', 'stable', {'group': 'https://docs.openstack.org/api/openstack-identity/3/param/config_group'})), (<class 'keystone.api.domains.DefaultConfigOptionResource'>, '/domains/config/<string:group>/<string:option>/default', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/domain_config_default_option', 'stable', {'group': 'https://docs.openstack.org/api/openstack-identity/3/param/config_group', 'option': 'https://docs.openstack.org/api/openstack-identity/3/param/config_option'})), (<class 'keystone.api.domains.DomainUserListResource'>, '/domains/<string:domain_id>/users/<string:user_id>/roles', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/domain_user_roles', 'stable', {'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'})), (<class 'keystone.api.domains.DomainUserResource'>, '/domains/<string:domain_id>/users/<string:user_id>/roles/<string:role_id>', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/domain_user_role', 'stable', {'domain_id': 'https://docs.openstack.org/api/openstack-identity/3/param/domain_id', 'role_id': 'https://docs.openstack.org/api/openstack-identity/3/param/role_id', 'user_id': 'https://docs.openstack.org/api/openstack-identity/3/param/user_id'})), (<class 'keystone.api.domains.DomainGroupListResource'>, '/domains/<string:domain_id>/groups/<string:group_id>/roles', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/domain_group_roles', 'stable', {'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'})), (<class 'keystone.api.domains.DomainGroupResource'>, '/domains/<string:domain_id>/groups/<string:group_id>/roles/<string:role_id>', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/domain_group_role', 'stable', {'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.Collection[str] | None] = {'DELETE', 'GET', 'PATCH'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_url_rule
by default.
- 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.Collection[str] | None] = {'DELETE', 'GET', 'PATCH'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_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.Collection[str] | None] = {'DELETE', 'GET', 'PATCH'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_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.Collection[str] | None] = {'DELETE', 'GET', 'PATCH', 'PUT'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_url_rule
by default.
- 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.Collection[str] | None] = {'GET'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_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.Collection[str] | None] = {'DELETE', 'GET', 'PUT'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_url_rule
by default.
- class keystone.api.domains.DomainResource[source]¶
Bases:
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: t.ClassVar[t.Collection[str] | None] = {'DELETE', 'GET', 'PATCH', 'POST'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_url_rule
by default.
- 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.Collection[str] | None] = {'GET'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_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.Collection[str] | None] = {'DELETE', 'GET', 'PUT'}¶
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]
) asroute
andadd_url_rule
by default.