Support Questions

Find answers, ask questions, and share your expertise
Announcements
Welcome to the upgraded Community! Read this blog to see What’s New!

Is there an Ambari API call to find the diff between 2 config versions for a config group?

avatar
Contributor

I am looking for an API call with which I can get the property differences between 2 config versions of a Service?

Would be great if it can be extended to config versions in a config group.

1 ACCEPTED SOLUTION

avatar
@dbalasundaran

You can try this APIs and programmatically find the diff between the configuration lists

<AMBARI_HOST>/api/v1/clusters/cl1/configurations/service_config_versions?service_name=HDFS&group_name=<GROUP_NAME>&service_config_version.in(<VERSION_NUMBER>)

E.g

<AMBARI_HOST>/api/v1/clusters/cl1/configurations/service_config_versions?service_name=HDFS&group_name=mycg1&service_config_version.in(6)


<AMBARI_HOST>/api/v1/clusters/cl1/configurations/service_config_versions?service_name=HDFS&group_name=mycg1&service_config_version.in(7)

View solution in original post

2 REPLIES 2

avatar
@dbalasundaran

You can try this APIs and programmatically find the diff between the configuration lists

<AMBARI_HOST>/api/v1/clusters/cl1/configurations/service_config_versions?service_name=HDFS&group_name=<GROUP_NAME>&service_config_version.in(<VERSION_NUMBER>)

E.g

<AMBARI_HOST>/api/v1/clusters/cl1/configurations/service_config_versions?service_name=HDFS&group_name=mycg1&service_config_version.in(6)


<AMBARI_HOST>/api/v1/clusters/cl1/configurations/service_config_versions?service_name=HDFS&group_name=mycg1&service_config_version.in(7)

avatar
Contributor

Thanks @kramakrishnan. This works!

Labels