Support Questions

Find answers, ask questions, and share your expertise

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

avatar
Contributor
 
1 ACCEPTED SOLUTION

avatar
Contributor

@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
Expert Contributor

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

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

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