'Return data about the given floating IP.'

@wsgi.Controller.api_version('2.1', MAX_PROXY_API_SUPPORT_VERSION)
@extensions.expected_errors((400, 404))
def show(self, req, id):

    context = req.environ['nova.context']
    context.can(fi_policies.BASE_POLICY_NAME)
    try:
        floating_ip = self.network_api.get_floating_ip(context, id)
    except (exception.NotFound, exception.FloatingIpNotFound):
        msg = (_('Floating    IP    not    found    for    ID    %s') % id)
        raise webob.exc.HTTPNotFound(explanation=msg)
    except exception.InvalidID as e:
        raise webob.exc.HTTPBadRequest(explanation=e.format_message())
    return _translate_floating_ip_view(floating_ip)
