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 a rest api call in ambari to get all the supported stack versions?

avatar
Explorer
 
1 ACCEPTED SOLUTION

avatar

@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

avatar
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.

avatar

@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...

avatar
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

Labels