get indices from elastic code example
Example 1: elasticsearch show indexes
GET /_cat/indices
curl -X GET "localhost:9200/_cat/indices?pretty"
Example 2: elasticsearch curl to get indices
curl http://localhost:9200/_aliases?pretty=true
GET /_cat/indices
curl -X GET "localhost:9200/_cat/indices?pretty"
curl http://localhost:9200/_aliases?pretty=true