OpenSearch/docs/java-rest/high-level/miscellaneous/main.asciidoc

23 lines
747 B
Plaintext
Raw Normal View History

[[java-rest-high-main]]
=== Info API
[[java-rest-high-main-request]]
==== Execution
Cluster information can be retrieved using the `info()` method:
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests}/MiscellaneousDocumentationIT.java[main-execute]
--------------------------------------------------
[[java-rest-high-main-response]]
==== Response
The returned `MainResponse` provides various kinds of information about the cluster:
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests}/MiscellaneousDocumentationIT.java[main-response]
--------------------------------------------------