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?

Solved Go to solution
Highlighted

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

Explorer
 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

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

@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

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

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.

Highlighted

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

@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

Highlighted

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

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