You can use the ListClusterAdmins method to return the list of all cluster administrators for the cluster.
There can be several cluster administrator accounts with different levels of permissions. There can be only one primary cluster administrator in the system. The primary Cluster Admin is the administrator that was created when the cluster was created. LDAP administrators can also be created when setting up an LDAP system on the cluster.
This method has no input parameters.
This method has the following return value:
Name | Description | Type |
---|---|---|
clusterAdmins | Information about all cluster and LDAP administrators that exist for a cluster. | clusterAdmin array |
Requests for this method are similar to the following example:
{ "method": "ListClusterAdmins", "params": {}, "id" : 1 }
This method returns a response similar to the following example:
{ "id":1, "result":{ "clusterAdmins":[ { "access":[ "administrator" ], "attributes":null, "authMethod":"Cluster", "clusterAdminID":1, "username":"admin" }, { "access":[ "read", "administrator" ], "attributes":{ }, "authMethod":"Ldap", "clusterAdminID":7, "username":"john.smith" }, { "access":[ "read", "administrator" ], "attributes":{}, "authMethod":"Ldap", "clusterAdminID":6, "username":"cn=admin1 jones,ou=ptusers,c=prodtest,dc=solidfire,dc=net" } ] } }