mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-29 11:28:30 +00:00
[DOCS] Reformat cat master API (#45240)
This commit is contained in:
parent
15d41a7508
commit
d8423f0a80
@ -1,8 +1,36 @@
|
|||||||
[[cat-master]]
|
[[cat-master]]
|
||||||
=== cat master
|
=== cat master
|
||||||
|
|
||||||
`master` doesn't have any extra options. It simply displays the
|
Returns information about the master node, including the ID, bound IP address,
|
||||||
master's node ID, bound IP address, and node name. For example:
|
and name.
|
||||||
|
|
||||||
|
|
||||||
|
[[cat-master-api-request]]
|
||||||
|
==== {api-request-title}
|
||||||
|
|
||||||
|
`GET /_cat/master`
|
||||||
|
|
||||||
|
|
||||||
|
[[cat-master-api-query-params]]
|
||||||
|
==== {api-query-parms-title}
|
||||||
|
|
||||||
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=http-format]
|
||||||
|
|
||||||
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-h]
|
||||||
|
|
||||||
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=help]
|
||||||
|
|
||||||
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=local]
|
||||||
|
|
||||||
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
|
||||||
|
|
||||||
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
|
||||||
|
|
||||||
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
|
||||||
|
|
||||||
|
|
||||||
|
[[cat-master-api-example]]
|
||||||
|
==== {api-examples-title}
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
@ -10,7 +38,7 @@ GET /_cat/master?v
|
|||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// CONSOLE
|
// CONSOLE
|
||||||
|
|
||||||
might respond:
|
The API returns the following response:
|
||||||
|
|
||||||
[source,txt]
|
[source,txt]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user