REST APIs —— Cluster APIs —— Cluster health API
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-health.html#cluster-health
Returns the health status of a cluster.
返回集群的健康状态。
1、Request(请求)
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-health.html#cluster-health-api-request
GET /_cluster/health/< target>
2、Prerequisites(先决条件)
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-health.html#cluster-health-api-prereqs
If the Elasticsearch security features are enabled, you must have the monitor or manage cluster privilege to use this API.
如果启用了 Elasticsearch 安全特性,则必须拥有监视器或管理集群特权才能使用此 API。
3、Description(描述)
https://www.elastic.co/guide/en/elasticsearch/reference/8.8/cluster-health.html#cluster-health-api-desc
The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices.
集群健康API返回有关集群健康状态的简单状态。您还可以使用此API来获取仅指定数据流和索引的健康状态。对于数据流,该API检索流支持的索引的健康状态。
标签:www,Cluster,精讲,APIs,cluster,API,health From: https://www.cnblogs.com/zuoyang/p/17501848.html