'Return data for the given key name.'

def _show(self, req, id, user_id=None, **keypair_filters):

    context = req.environ['nova.context']
    user_id = (user_id or context.user_id)
    context.can((kp_policies.POLICY_ROOT % 'show'), target={'user_id': user_id, 'project_id': context.project_id})
    try:
        keypair = self.api.get_key_pair(context, user_id, id)
        keypair = self._filter_keypair(keypair, created_at=True, deleted=True, deleted_at=True, id=True, user_id=True, updated_at=True, **keypair_filters)
    except exception.KeypairNotFound as exc:
        raise webob.exc.HTTPNotFound(explanation=exc.format_message())
    return {'keypair': keypair}
