Table Of Contents

Previous topic

keystone

Next topic

catalog Package

This Page

keystone Package

cli Module

config Module

class keystone.config.CommonConfig(**kwargs)

Bases: keystone.config.ConfigMixin, keystone.openstack.common.cfg.CommonConfigOpts

class keystone.config.Config(project=None, prog=None, version=None, usage=None, default_config_files=None)

Bases: keystone.config.ConfigMixin, keystone.openstack.common.cfg.ConfigOpts

class keystone.config.ConfigMixin

Bases: object

set_usage(usage)
keystone.config.register_bool(*args, **kw)
keystone.config.register_cli_bool(*args, **kw)
keystone.config.register_cli_int(*args, **kw)
keystone.config.register_cli_str(*args, **kw)
keystone.config.register_int(*args, **kw)
keystone.config.register_str(*args, **kw)
keystone.config.setup_logging(conf)

Sets up the logging options for a log with supplied name

Parameters:conf – a cfg.ConfOpts object

exception Module

exception keystone.exception.Conflict(message=None, **kwargs)

Bases: keystone.exception.Error

Conflict occurred attempting to store %(type)s.

%(details)s

code = 409
title = 'Conflict'
exception keystone.exception.EndpointNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find endpoint: %(endpoint_id)s

exception keystone.exception.Error(message=None, **kwargs)

Bases: exceptions.StandardError

Base error class.

Child classes should define an HTTP status code, title, and a doc string.

code = None
title = None
exception keystone.exception.Forbidden(message=None, **kwargs)

Bases: keystone.exception.Error

You are not authorized to perform the requested action.

code = 403
title = 'Not Authorized'
exception keystone.exception.ForbiddenAction(message=None, **kwargs)

Bases: keystone.exception.Forbidden

You are not authorized to perform the requested action: %(action)s

exception keystone.exception.NotFound(message=None, **kwargs)

Bases: keystone.exception.Error

Could not find: %(target)s

code = 404
title = 'Not Found'
exception keystone.exception.NotImplemented(message=None, **kwargs)

Bases: keystone.exception.Error

The action you have requested has not been implemented.

action = 'Not Implemented'
code = 501
exception keystone.exception.RoleNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find role: %(role_id)s

exception keystone.exception.ServiceNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find service: %(service_id)s

exception keystone.exception.TenantNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find tenant: %(tenant_id)s

exception keystone.exception.TokenNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find token: %(token_id)s

exception keystone.exception.Unauthorized(message=None, **kwargs)

Bases: keystone.exception.Error

The request you have made requires authentication.

code = 401
title = 'Not Authorized'
exception keystone.exception.UnexpectedError(message=None, **kwargs)

Bases: keystone.exception.Error

An unexpected error prevented the server from fulfilling your request.

%(exception)s

code = 500
title = 'Internal Server Error'
exception keystone.exception.UserNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find user: %(user_id)s

exception keystone.exception.ValidationError(message=None, **kwargs)

Bases: keystone.exception.Error

Expecting to find %(attribute)s in %(target)s.

The server could not comply with the request since it is either malformed or otherwise incorrect.

The client is assumed to be in error.

code = 400
title = 'Bad Request'

service Module

test Module