mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
44c3b04bef
Converts docs for `_cat/segments`, `_cat/plugins` and `_cat/repositories` from `curl` to `// CONSOLE` so they are tested as part of the build and are cleaner to use in Console. They should work fine with `curl` with the `COPY AS CURL` link. Also swaps the `source` type of the response from `js` to `txt` because that is more correct. The syntax highlighter doesn't care. It looks at the text to figure out the language. So it looks a little funny for `_cat` responses regardless. Relates to #18160
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
[[cat-master]]
|
|
== cat master
|
|
|
|
`master` doesn't have any extra options. It simply displays the
|
|
master's node ID, bound IP address, and node name. For example:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
GET /_cat/master?v
|
|
--------------------------------------------------
|
|
// CONSOLE
|
|
|
|
might respond:
|
|
|
|
[source,txt]
|
|
--------------------------------------------------
|
|
id host ip node
|
|
YzWoH_2BT-6UjVGDyPdqYg 127.0.0.1 127.0.0.1 YzWoH_2
|
|
--------------------------------------------------
|
|
// TESTRESPONSE[s/YzWoH_2.+/.+/ _cat]
|
|
|
|
This information is also available via the `nodes` command, but this
|
|
is slightly shorter when all you want to do, for example, is verify
|
|
all nodes agree on the master:
|
|
|
|
[source,sh]
|
|
--------------------------------------------------
|
|
% pssh -i -h list.of.cluster.hosts curl -s localhost:9200/_cat/master
|
|
[1] 19:16:37 [SUCCESS] es3.vm
|
|
Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 H5dfFeA
|
|
[2] 19:16:37 [SUCCESS] es2.vm
|
|
Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 H5dfFeA
|
|
[3] 19:16:37 [SUCCESS] es1.vm
|
|
Ntgn2DcuTjGuXlhKDUD4vA 192.168.56.30 H5dfFeA
|
|
--------------------------------------------------
|
|
// NOTCONSOLE
|