REST APIs —— Cluster APIs —— Cluster state API
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-state.html#cluster-state
Returns an internal representation of the cluster state for debugging or diagnostic purposes.
返回用于调试或诊断目的的群集状态的内部表示。
1、Request(请求)
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-state.html#cluster-state-api-request
GET /_cluster/state//< target>
2、Prerequisites(先决条件)
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-state.html#cluster-state-api-prereqs
If the Elasticsearch security features are enabled, you must have the manage cluster privilege to use this API.
如果启用了 Elasticsearch 安全特性,则必须拥有管理集群特权才能使用此 API。
3、Description(描述)
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-state.html#cluster-state-api-desc
The cluster state is an internal data structure which keeps track of a variety of information needed by every node, including:
集群状态是一种内部数据结构,它跟踪每个节点所需的各种信息,包括:
标签:www,Cluster,精讲,APIs,cluster,state,API From: https://www.cnblogs.com/zuoyang/p/17501871.html