Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Is there a rest api call in ambari to get all the supported stack versions?

Explorer
 
1 ACCEPTED SOLUTION

@vrathod, if you are looking for all supported stacks for a given ambari release, you can try the getVersionDefinitions API with filters.

E.g http://<AMBARI_HOST>:8080/api/v1/version_definitions?fields=VersionDefinition/stack_default,operatin...

View solution in original post

3 REPLIES 3

Rising Star

@vrathod

This will give top level view of stacks available.

http://<host_ip>:8080/api/v1/stacks/

For HDP stack versions:

http://<host_ip>:8080/api/v1/stacks/HDP

Hope this helps.

@vrathod, if you are looking for all supported stacks for a given ambari release, you can try the getVersionDefinitions API with filters.

E.g http://<AMBARI_HOST>:8080/api/v1/version_definitions?fields=VersionDefinition/stack_default,operatin...

Explorer

Thanks @kramakrishnan and @Swapan Shridhar

I was looking for something similar to what we see on Select Stack page.

http://<host_ip>:8080/api/v1/stacks/HDP was giving additional unsupported stacks but the below worked with filters http://<AMBARI_HOST>:8080/api/v1/version_definitions

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.