def clusterstatus(self):
        res, con_info =  self.api('clusterstatus')
        cluster = res['cluster']['collections']
        out = {}
        try:
            for collection in cluster:
                out[collection] = {}
                for shard in cluster[collection]['shards']:
                    out[collection][shard] = {}
                    for replica in cluster[collection]['shards'][shard]['replicas']:
                        out[collection][shard][replica] = cluster[collection]['shards'][shard]['replicas'][replica]
                        if out[collection][shard][replica]['state'] != 'active':
                            self.logger.error("{}->{}->{} is not Active".format(collection, shard, replica))
        except Exception as e:
            self.logger.error("Couldn't parse response from clusterstatus API call")
            self.logger.exception(e)
        return out
Returns a slightly slimmed down version of the clusterstatus api command.
dataset/ETHPy150Open moonlitesolutions/SolrClient/SolrClient/collections.py/Collections.clusterstatus