You can use the GetClusterState API method to indicate if a node is part of a cluster or not.
This method has no input parameters.
This method has the following return values:
Name | Description | Type |
---|---|---|
cluster | Name of the cluster. | string |
state |
|
string |
Requests for this method are similar to the following example:
{ "method": "GetClusterState", "params": {}, "id" : 1 }
This method returns a response similar to the following example:
{ "id" : 1, "result" : "cluster" : "Cluster101" "state" : "Active" }