9 View Interface

Provide some internal information, you can monitor
the /_cat request in real time and list all available request addresses.
All requests can add parameter v to make the output more readable. Such as
GET /_cat/master?v

All requests can accept the help request parameter, which displays the description information of all columns. Such as
GET /_cat/master?help

All requests can accept the parameter h to determine which columns you want to display
GET /_cat/nodes?h=ip,port,heapPercent,name


Number formatting. 3.5mb means 3763212. The same may be used in both cases in the system.
curl '192.168.56.10:9200/_cat/indices?bytes=b'

If you want to
replace the time format, you can use time (d: days, h hours, m minutes, s seconds, ms milliseconds)
to replace the size format, you can use size (because I don't know how to translate here, take it directly, and the base is 10, such as 7k= 7000. k kilo, m mega, g giga, t tera, p peta)
replace byte format can use bytes (1024 in base. b bytes, kb kilobytes, mb megabytes, gb gigabytes, tb terabytes, pb petabytes)

can be in json , text, smile, yaml or cbor return display
% curl 'localhost:9200/_cat/indices?format=json&pretty'
[
  {
    "pri.store.size": "650b",
    "health": "yellow",
    "status": "open",
    "index": "twitter",
    "pri": "5",
    "rep": "1",
    "docs.count": "0",
    "docs.deleted": "0",
    "store.size": "650b"
  }
]


You can also sort some columns (or aliases) according to the parameter s in the format s=column1,column2:desc,column3. The default sorting method is asc for ascending order, and desc can also be used for descending order. Such as
GET _cat/templates?v&s=order:desc,template



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326524761&siteId=291194637