'Creates a new console.'

@extensions.expected_errors(404)
def create(self, req, server_id, body):

    context = req.environ['nova.context']
    context.can((consoles_policies.POLICY_ROOT % 'create'))
    try:
        self.console_api.create_console(req.environ['nova.context'], server_id)
    except exception.InstanceNotFound as e:
        raise exc.HTTPNotFound(explanation=e.format_message())
