Obtaining Cloudera Manager (CM) cluster IDs
The cluster IDs of Cloudera Manager could be obtained by running the following curl command on the node with access to CM:
curl -u<CM_USER>
:<CM_PASSWORD>
<CM_HOST>
:<PORT>
/API/<API_VERSION>
/clusters
This would return a list of properties. The UUID field denotes the CM cluster ID. For example:
> curl -u admin:admin "http://123.45.6.789:7180/api/v17/clusters" { "items" : [ { "name" : "cluster", "displayName" : "Sample Cluster", "version" : "CDH5", "fullVersion" : "5.12.2", "maintenanceMode" : false, "maintenanceOwners" : [ ], "clusterUrl" : "http://xyz.unraveldata.com:7180/cmf/clusterRedirect/cluster", "hostsUrl" : "http://xyz.unraveldata.com:7180/cmf/clusterRedirect/cluster/hosts", "entityStatus" : "CONCERNING_HEALTH", "uuid" : "94562003-ery8-4418-914c-f5738fc1133d" } ] }