命令样例如下:
curl -X GET "https://localhost:9200/_cat/nodeattrs?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
node host ip attr value
jackie-ubuntu 127.0.0.1 127.0.0.1 ml.allocated_processors 4
jackie-ubuntu 127.0.0.1 127.0.0.1 ml.allocated_processors_double 4.0
jackie-ubuntu 127.0.0.1 127.0.0.1 ml.max_jvm_size 2021654528
jackie-ubuntu 127.0.0.1 127.0.0.1 ml.config_version 11.0.0
jackie-ubuntu 127.0.0.1 127.0.0.1 xpack.installed true
jackie-ubuntu 127.0.0.1 127.0.0.1 transform.config_version 10.0.0
jackie-ubuntu 127.0.0.1 127.0.0.1 ml.machine_memory 4040327168
查看帮助,命令如下:
curl -X GET "https://localhost:9200/_cat/nodeattrs?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
node | name | node name
id | id,nodeId | unique node id
pid | p | process id
host | h | host name
ip | i | ip address
port | po | bound transport port
attr | | attribute description
value | attr.value | attribute value
相关资料
- cat nodeattrs API
- API conventions
- HTTP accept header