Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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

avatar
New Member
 
1 ACCEPTED SOLUTION

avatar
New Member

@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
New Member

@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
New Member

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