'Makes REST API call to query the volume by name.
:param volume_name: name of volume
:param full_project_name: Full project path
:returns: Volume details in JSON response payload'

def volume_query(self, full_project_name, volume_name):

    if common.is_uri(volume_name):
        return volume_name
    if (not full_project_name):
        raise common.CoprHdError(common.CoprHdError.NOT_FOUND_ERR, _('Project    name    not    specified'))
    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'] == volume_name)):
            return volume['id']
    raise common.CoprHdError(common.CoprHdError.NOT_FOUND_ERR, (_('Volume%s:    not    found') % volume_name))
