@vrathod, if you are looking for all supported stacks for a given ambari release, you can try the getVersionDefinitions API with filters.
View solution in original post
This will give top level view of stacks available.
For HDP stack versions:
Hope this helps.
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