To list the nodes available in a cluster, complete the following steps.
-
Query the /api/cluster/nodes endpoint on the Central Management node.
curl --cookie cookies.txt https://<IP-address-of-Central-Management-node>/api/cluster/nodes
The following is a sample response received.
For more information on the meta object, see Message format.
{ "items": [ { "key": "46f97a58-4028-467d-9a22-9cfe78ae3e1c", "meta": { "href": "/api/cluster/nodes/46f97a58-4028-467d-9a22-9cfe78ae3e1c", "status": "/api/cluster/status/46f97a58-4028-467d-9a22-9cfe78ae3e1c" } }, { "key": "b35c54da-b556-4f91-ade5-d26283d68277", "meta": { "href": "/api/cluster/nodes/b35c54da-b556-4f91-ade5-d26283d68277", "status": "/api/cluster/status/b35c54da-b556-4f91-ade5-d26283d68277" } } ], "meta": { "href": "/api/cluster/nodes", "parent": "/api/cluster", "remaining_seconds": 28800, "self": "/api/cluster/nodes/b35c54da-b556-4f91-ade5-d26283d68277", "status": "/api/cluster/status" } }
Elements Type Description items Top-level element (list of JSON objects) List of endpoints (objects) available from the current endpoint. key string The ID of the node. meta Top-level item (JSON object) Contains links to different parts of the REST service. href string (relative path) The path of the node that returned the response. status string (relative path) The path to the status of the node that returned the response.