'Creates a snapshot for a volume
:param  volume: The volume you\'re creating a snapshot for.
:type   volume: :class:`StorageVolume`
:return:    Instance of class ``VolumeSnapshot``
:rtype:     :class:`VolumeSnapshot`'

def create_volume_snapshot(self, volume):

    action = (volume.extra['href'] + '/create-snapshot')
    response = self.connection.request(action=action, headers={'Content-Type': 'application/x-www-form-urlencoded'}, method='POST', with_full_url=True)
    return self._to_snapshot(response.object, response.headers)
