To find out whether a node has been joined to a cluster, complete the following steps.
-
Query the /api/cluster/join_request endpoint on the node whose join status you want to figure out.
curl GET --cookie cookies.txt https://<IP-address-of-node-to-be-queried>/api/cluster/join_request
The following is a sample response received.
For more information on the meta object, see Message format.
"details": { "central_management_address": "<IP-address-of-Central-Management-node>" }, "meta": { "href": "/api/cluster/join_request", "parent": "/api/cluster", "remaining_seconds": 600 }, "status": "in cluster" }
Elements Type Description details Top-level element Contains the IP address of the Central Management node of the cluster. central_management_address string The IP address of the Central Management node.
Not provided when no cluster has been set up yet.
status string Possible values are:
- not configured: Displayed when no cluster has been set up yet.
- in progress: Displayed when the join action is in progress.
- in cluster: Displayed when the node is already in the cluster.