'Gets a volume snapshot.'

def get_snapshot(self, volume_id):

    filter = {'vmUuid': volume_id}
    payload = (('/' + self.api_version) + '/snapshot')
    r = self.get_query(payload, filter)
    if (r.status_code != 200):
        msg = (_('Failed    to    get    snapshot    for    volume    %s.') % volume_id)
        raise exception.VolumeDriverException(msg)
    if (int(r.json()['filteredTotal']) > 0):
        return r.json()['items'][0]['uuid']['uuid']
