dell_storagecenter_driver/dell_storagecenter_api.py
def _get_volume_list(self, name, deviceid, filterbyvfname=True):
        """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.
        :return: Returns the scvolume list or None.
        """
        result = None
        # We need a name or a device ID to find a volume.
        if name or deviceid:
            pf = self._get_payload_filter()
            pf.append('scSerialNumber', self.ssn)
            if name is not None:
                pf.append('Name', name)
            if deviceid is not None:
                pf.append('DeviceId', deviceid)
            # set folderPath
            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)
        # We return None if there was an error and a list if the command
        # succeeded. It might be an empty list.
        return result
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.
        :return: Returns the scvolume list or None.
        
Return the specified list of volumes.
Return the specified list of volumes .
def _get_volume_list(self, name, deviceid, filterbyvfname=True):
        result = None
        if name or deviceid:
            pf = self._get_payload_filter()
            pf.append('scSerialNumber', self.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
def _get_volume_list ( self , name , deviceid , filterbyvfname = True ) : result = None if name or deviceid : pf = self . _get_payload_filter ( ) pf . append ( 'scSerialNumber' , self . 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
Return the specified list of volumes.
Return the specified list of volumes .
"""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.
        :return: Returns the scvolume list or None.
        """ # We need a name or a device ID to find a volume. # set folderPath # We return None if there was an error and a list if the command # succeeded. It might be an empty list.
Returns the scvolume list or None.
Returns the scvolume list or None .
self
name
None
deviceid
Volume device ID on the SC backend.
Volume device ID on the SC backend .
filterbyvfname
If set to true then this filters by the preset
folder name.
If set to true then this filters by the preset folder name .