Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

accessing variable names in Ambari through REST

avatar
Expert Contributor

How can I list the existing variable names and their values used across various configurations of Ambari through REST API for example {{namenode_heapsize}} ?

1 ACCEPTED SOLUTION

avatar
Expert Contributor
3 REPLIES 3

avatar
Expert Contributor

You can use the below call which will list all the values for that specific service :

http://<Ambari-hostname>:8080/api/v1/clusters/<cluster-name>/configurations/service_config_versions?...

avatar
Expert Contributor

Thanks @krajguru, that was exactly I was looking for 🙂

avatar
New Member

@nyadav To add to @krajguru's answer:

You can use query parameter is_current=true to retrieve the latest configuration version in case you have multiple versions of configurations.

E.g

http://<Ambari-hostname>:8080/api/v1/clusters/<cluster-name>/configurations/service_config_versions?...