Contact Us

Nodes API

The nodes API makes it possible to retrieve information about individual nodes within your cluster. It supports standard parameters such {timeout} and {node-filters}.


The {timeout} parameter can be used to change the default time limit for node response.

{timeout}TimeValueDefault value is 30s.

Node filters

Use the {node-filters} parameter to filter the target set of nodes in the API response.

{node-filters}StringA comma-separated list of resolution mechanisms that OpenSearch uses to identify cluster nodes.

Node filters support several node resolution mechanisms.

  • Pre defined constants: _local, _cluster_manager, or _all
  • An exact match for nodeID
  • A simple case-sensitive wildcard pattern matching for node-name, host-name, or host-IP-address
  • Node roles where the <bool> value is set either to true or false):
    • cluster_manager:<bool>
    • data:<bool>
    • ingest:<bool>
    • voting_only:<bool>
    • ml:<bool>
    • coordinating_only:<bool>
  • A simple case-sensitive wildcard pattern matching for node attributes: <node attribute*>:<attribute value*>. The wildcard matching pattern can be used in both the key and value at the same time.

Resolution mechanisms are applied sequentially in the order specified by the client. Each mechanism specification can either add or remove nodes.

If you want to get statistics from the elected cluster manager node only, use the following:

GET /_nodes/_cluster_manager/stats

If you want to get statistics from nodes that are data-only nodes, use the following:

GET /_nodes/data:true/stats

Order of resolution mechanisms

The order of resolution mechanisms is applied sequentially, and each can add or remove nodes. The following examples yield different results:

If you want to get statistics from all the nodes but the cluster manager node, use the following:

GET /_nodes/_all,cluster_manager:false/stats

However, if we switch the resolution mechanisms, then the result will include all the cluster nodes including the cluster manager node.

GET /_nodes/cluster_namager:false,_all/stats
© 2021-2023 Mach5 Software, Inc. All rights reserved

When you visit or interact with our sites, services or tools, we or our authorised service providers may use cookies for storing information to help provide you with a better, faster and safer experience and for marketing purposes.