'restore a snapshot of into a volume.'

def restoreFromSnapshot(self, snapshot_id, volume_name, zone_id, description, volume_id):

    params = {'snapshotId': snapshot_id, 'volumeName': volume_name, 'zone_id': zone_id, 'description': 'local    restore    snapshot', 'volumeId': volume_id}
    data = json.dumps(params, sort_keys=True, indent=4, separators=(',', ':    '))
    request = ('%(req_prefix)s/restore' % self.prefix_var)
    r = requests.post(request, data, headers=self.req_headers)
    return r.json()
