There is still no API for this. But you can write a script to determine which index is closed.
API check:
curl -XGET http:
Here is the status of the index
Zip open:
{ "cluster_name" : "ABC", "status" : "green", "timed_out" : false, "number_of_nodes" : 1, "number_of_data_nodes" : 1, "active_primary_shards" : 1, "active_shards" : 1, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0 }
Index closed:
{ "cluster_name" : "ABC", "status" : "green", "timed_out" : false, "number_of_nodes" : 1, "number_of_data_nodes" : 1, "active_primary_shards" : 0, "active_shards" : 0, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0 }
From the information you can determine the status of the active_primary_shards index. Hope this helps you.
Ben lim
source share