Unfortunately, there is no single API for this. You need to merge data from more than one API
* API to get the host(s) where the service is deployed (e.g. http://ambari-server-host:8080/api/v1/clusters/c1/hosts/smc201-1.c.pramod-thangali.internal/host_components/NAMENODE?fields=HostRoles/actual_configs/hdfs-site<http://smc201-1.c.pramod-thangali.internal:8080/api/v1/clusters/c1/hosts/smc201-1.c.pramod-thangali.internal/host_components/NAMENODE?fields=HostRoles/actual_configs/hdfs-site>) -- pick the tag for the actual config * Get the config and grep the property (e.g. http://ambari-server-host:8080/api/v1/clusters/c1/configurations?type=hdfs-site&tag=version1436499674556<http://smc201-1.c.pramod-thangali.internal:8080/api/v1/clusters/c1/configurations?type=hdfs-site&tag=version1436499674556>) -- pick the correct property (e.g. dfs.namenode.http-address)? -Sumit ________________________________ From: Anandha L Ranganathan <[email protected]> Sent: Saturday, July 11, 2015 7:09 PM To: [email protected] Subject: Service endpoints URLs using Ambari APIs I am looking for an API that will provide all the service endpoints of the components that are installed using Ambari The api should return something like this. ResourceManager Logs = http://hostname1:8088/ namenode = http://hostname:50070<http://hostname:50070/> oozie = http://hostname2:11000<http://hostname2:11000/> It could be single API or multiple API call , anything is fine. Is there any API does exists ?
