'Create snapshot from volume
:param      volume: Instance of ``StorageVolume``
:type       volume: ``StorageVolume``
:param      name: The name of the snapshot is disregarded
by CloudStack drivers
:type       name: `str`
:rtype: :class:`VolumeSnapshot`'

def create_volume_snapshot(self, volume, name=None):

    snapshot = self._async_request(command='createSnapshot', params={'volumeid': volume.id}, method='GET')
    return self._to_snapshot(snapshot['snapshot'])
