'Return the specified list of volumes.
:param name: Volume name.
:param deviceid: Volume device ID on the SC backend.
:param filterbyvfname:  If set to true then this filters by the preset
folder name.
:param ssn: SSN to search on.
:return: Returns the scvolume list or None.'

def _get_volume_list(self, name, deviceid, filterbyvfname=True, ssn=(-1)):

    ssn = self._vet_ssn(ssn)
    result = None
    if (name or deviceid):
        pf = self._get_payload_filter()
        pf.append('scSerialNumber', ssn)
        if (name is not None):
            pf.append('Name', name)
        if (deviceid is not None):
            pf.append('DeviceId', deviceid)
        if filterbyvfname:
            vfname = (self.vfname if self.vfname.endswith('/') else (self.vfname + '/'))
            pf.append('volumeFolderPath', vfname)
        r = self.client.post('StorageCenter/ScVolume/GetList', pf.payload)
        if self._check_result(r):
            result = self._get_json(r)
    return result
