universe docs source
browse docs
docs /api-reference /cluster

Cluster API

Discover the nodes in the Hazelcast cluster and inspect each node's instances and resource usage. A remote command dispatch endpoint is defined for running console commands on other nodes.

Every node in a Universe deployment is a member of one Hazelcast cluster. The cluster endpoints, served by the Master, enumerate those members and report the instances and resources each one owns. They draw on the same distributed state the Master uses to schedule instances.

!
warning

All cluster endpoints require a token with ALL permission.

List cluster nodes

GET /api/cluster/nodes

Returns every node in the cluster with its address, master flag, and current resource usage.

FieldTypeDescription
nodeIdstringUnique node identifier.
addressstringNode address advertised to the cluster.
masterbooleanWhether this node runs the REST API and owns authoritative state.
resourcesNodeResourcesusedRamMB and usedCpu currently in use on the node.
curl http://<master>:7000/api/cluster/nodes \
  -H "Authorization: Bearer YOUR_TOKEN"

Get a node

GET /api/cluster/nodes/{id}

Returns detailed information about a single node, including the full list of instances it hosts and its resource usage.

ParameterInDescription
idpathThe node ID. Required.
curl http://<master>:7000/api/cluster/nodes/node-2 \
  -H "Authorization: Bearer YOUR_TOKEN"

Execute a command on a node

POST /api/cluster/nodes/{id}

Dispatches a console command to the specified node. Remote dispatch travels over Hazelcast to the target member. Commands intended for the node serving the request cannot be run through this endpoint; use the Commands API on the Master instead.

Body fieldTypeDescription
commandstringConsole command to execute on the node, such as instance list. Required.
curl -X POST http://<master>:7000/api/cluster/nodes/node-2 \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"command": "instance list"}'
!
warning

Targeting the local node returns 400 Bad Request:

{
  "error": "Cannot execute command on local node via API"
}
i
note

Remote node command execution is defined in the API surface but not yet fully wired up; a request to a remote node may return 501 Not Implemented. For commands on the Master itself, use POST /api/commands/execute.