def get_snapshots(cluster_config, repository):
    """
    Get list of snapshots.

    Args:
        cluster_config: cluster specific config
        repository: repository name

    Returns:
        Returns list of snapshots from the given cluster:repo
    """
    es = cluster_config['es']
    snapshots = es.cat.snapshots(
        repository=repository,
        format='json',
        request_timeout=300
    )
    return snapshots