You can use the GetClusterMasterNodeID method to retrieve the ID of the node that performs cluster-wide administration tasks and holds the storage virtual IP address (SVIP) and management virtual IP address (MVIP).
This method has no input parameters.
This method has the following return value:
Name | Description | Type |
---|---|---|
nodeID | ID of the master node. | integer |
Requests for this method are similar to the following example:
{ "method": "GetClusterMasterNodeID", "params": {}, "id" : 1 }
This method returns a response similar to the following example:
{ "id" : 1 "result": { "nodeID": 1 } }
9.6