list indices elasticsearch code example
Example 1: elasticsearch show indexes
GET /_cat/indices
curl -X GET "localhost:9200/_cat/indices?pretty"
Example 2: elasticsearch list indexes
GET /_cat/indices/twi*?v&s=index
Example 3: elasticsearch get indices
{
"old_deuteronomy" : {
"aliases" : { }
},
"mungojerrie" : {
"aliases" : {
"rumpleteazer" : { },
"that_horrible_cat" : { }
}
}
}