Complete the code to get the cluster health status.
GET /_cluster/[1]The correct endpoint to get the cluster health status is /_cluster/health.
Complete the code to filter cluster health by a specific index.
GET /_cluster/health?level=[1]To get health info at the indices level, use level=indices in the query.
Fix the error in the cluster health API call to wait for a green status.
GET /_cluster/health?wait_for_status=[1]To wait until the cluster status is green, use wait_for_status=green.
Fill both blanks to check cluster health with a timeout and wait for a specific status.
GET /_cluster/health?timeout=[1]&wait_for_status=[2]
Use timeout=30s to set a 30-second timeout and wait_for_status=green to wait for green status.
Fill all three blanks to get cluster health for a specific index, wait for yellow status, and set a timeout.
GET /_cluster/health/[1]?wait_for_status=[2]&timeout=[3]
Specify the index as my_index, wait for yellow status, and set timeout to 50 seconds.