younifyd
Menu

Get the cluster health status (GET /_cluster/health)

Get the cluster health status

GET/_cluster/health

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get the cluster health status (GET /_cluster/health) action (under cluster).
  3. Fill in the fields below, then reference the result from later steps as {{getTheClusterHealthStatusGetClusterHealth.response.data}}.

Request

Query parameters

expand_wildcardsoneOf

Expand wildcard expression to concrete indices that are open, closed or both.

levelstring

Return health information at a specific level of detail.

One ofclusterindicesshards

localboolean

If true, retrieve information from the local node only. If false, retrieve information from the master node.

master_timeoutoneOf

The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

timeoutoneOf

The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

wait_for_active_shardsoneOf

Wait for the specified number of active shards. Use `all` to wait for all shards in the cluster to be active. Use `0` to not wait.

wait_for_eventsstring

Wait until all currently queued events with the given priority are processed.

One ofimmediateurgenthighnormallowlanguid

wait_for_nodesoneOf

Wait until the specified number (N) of nodes is available. It also accepts `>=N`, `<=N`, `>N` and `<N`. Alternatively, use the notations `ge(N)`, `le(N)`, `gt(N)`, and `lt(N)`.

wait_for_no_initializing_shardsboolean

Wait (until the timeout expires) for the cluster to have no shard initializations. If false, the request does not wait for initializing shards.

wait_for_no_relocating_shardsboolean

Wait (until the timeout expires) for the cluster to have no shard relocations. If false, the request not wait for relocating shards.

wait_for_statusstring

Wait (until the timeout expires) for the cluster to reach a specific health status (or a better status). A green status is better than yellow and yellow is better than red. By default, the request does not wait for a particular status.

One ofgreenGREENyellowYELLOWredREDunknownunavailable

Response

Returns 200 with an object. Read it in later steps with {{getTheClusterHealthStatusGetClusterHealth.response.data.<field>}}.

active_primary_shardsnumber

The number of active primary shards.

active_shardsnumber

The total number of active primary and replica shards.

active_shards_percentstring

The ratio of active shards in the cluster expressed as a string formatted percentage.

active_shards_percent_as_numbernumber

The ratio of active shards in the cluster expressed as a percentage.

cluster_nameany

The name of the cluster.

delayed_unassigned_shardsnumber

The number of shards whose allocation has been delayed by the timeout settings.

indicesobject
initializing_shardsnumber

The number of shards that are under initialization.

number_of_data_nodesnumber

The number of nodes that are dedicated data nodes.

number_of_in_flight_fetchnumber

The number of unfinished fetches.

number_of_nodesnumber

The number of nodes within the cluster.

number_of_pending_tasksnumber

The number of cluster-level changes that have not yet been executed.

relocating_shardsnumber

The number of shards that are under relocation.

statusany
task_max_waiting_in_queueany

The time since the earliest initiated task is waiting for being performed.

task_max_waiting_in_queue_millisany

The time expressed in milliseconds since the earliest initiated task is waiting for being performed.

timed_outboolean

If false the response returned within the period of time that is specified by the timeout parameter (30s by default)

unassigned_primary_shardsnumber

The number of primary shards that are not allocated.

unassigned_shardsnumber

The number of shards that are not allocated.

json
{
  "active_primary_shards": 0,
  "active_shards": 0,
  "active_shards_percent_as_number": 0,
  "cluster_name": null,
  "delayed_unassigned_shards": 0,
  "initializing_shards": 0,
  "number_of_data_nodes": 0,
  "number_of_in_flight_fetch": 0,
  "number_of_nodes": 0,
  "number_of_pending_tasks": 0,
  "relocating_shards": 0,
  "status": null
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.