// 查询所有索引
curl 'localhost:9200/_cat/indices?v'
//查询群集健康状态
curl localhost:9200/_cat/health
// 查看所有索引占用情况
curl -XGET 'localhost:9200/_cat/segments?v&h=si,sm'
// 查看 索引 fenci 的占用内存情况 sm
curl -XGET 'localhost:9200/_cat/segments/fenci?v&h=si,sm'
//删除索引(根据正则表达式)
curl -XDELETE 'http://localhost:9200/logstash-index-log*'
//删除所有索引
curl -XDELETE http://localhost:9200/_all
//es查看索引的mapping情况
curl -XGET "http://localhost:9200/logstash-index-log-20171127/_mapping?pretty"
// 关闭索引
curl -XPOST http://localhost:9200/logstash-index-log-20171127/_close/
//打开索引
curl -XPOST http://localhost:9200/logstash-index-log-20171127/_open/
//查询分片信息
curl -XGET 'localhost:9200/_cat/shards'
//手动删除副本分片
curl -XPUT "http://localhost:9200/_settings" -d' { "number_of_replicas" : 0 } '
//查询得到master节点的唯一标识
curl -XGET 'localhost:9200/_nodes/process?pretty'
//查看segment的情况
curl -XGET 'localhost:9200/_cat/segments'
//查看备份的snapshot
curl -XGET 'localhost:9200/_snapshot/my_backup/snapshotname-2018-08-02_14-19-33/_status'
官方API:https://www.elastic.co/guide/en/elasticsearch/reference