["python","elasticsearch"]
How to get a list of all indexes in python-elasticsearch

How would I get a list of the names of an index in Python? Here is what I have so far: >>> es=e.es >>> es <Elasticsearch([{'host': '14555f777d8097.us-east-1.aws.found.io', 'port': 9200}])> >>> es.indices <elasticsearch.client.indices.IndicesClient object at 0x10de86790> # how to get a list of all indexes in this cluster?
This question comes up when searching for information on retrieving aliases using the python-elasticsearch library. The accepted answer says to use get_aliases but that method has been removed (as of 2017). To get aliases, you can use the following: es.indices.get_alias("*") UPDATE The latest usage should be with a keyword arg: es.indices.get_alias(index="*")