ElasticSearch之cat master API

命令样例如下:

curl -X GET "https://localhost:9200/_cat/master?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

id                     host      ip        node
aKgBu7LgS9a6iPYH8n2JPw 127.0.0.1 127.0.0.1 jackie-ubuntu

查看帮助,命令如下:

curl -X GET "https://localhost:9200/_cat/master?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

id   |   | node id
host | h | host name
ip   |   | ip address
node | n | node name

相关资料

  • cat master API
  • API conventions
  • HTTP accept header

你可能感兴趣的:(elasticsearch,linux)