'Retrieves volume details based on volume name.
:param full_project_name: project path of the volume
:param name: name of the volume. If the volume is under a project,
then full XPath needs to be specified.
Example: If VOL1 is a volume under project PROJ1,
then the name of volume is PROJ1/VOL1
:returns: Volume details in JSON response payload'

def show(self, full_project_name, name):

    if common.is_uri(name):
        return name
    if (full_project_name is None):
        raise common.CoprHdError(common.CoprHdError.NOT_FOUND_ERR, (_('Volume    %s    :    not    found') % six.text_type(name)))
    uris = self.search_volumes(full_project_name)
    for uri in uris:
        volume = self.show_by_uri(uri)
        if (volume and ('name' in volume) and (volume['name'] == name)):
            return volume
    raise common.CoprHdError(common.CoprHdError.NOT_FOUND_ERR, (_('Volume    %s    :    not    found') % six.text_type(name)))
