Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

how to get the list of all services as displayed from ambari by ambari REST API

avatar
Contributor



Dear all , nice to be here , with all professional folks


we have ambari server , and all services shown from "Add Service Wizard"

as click on actions button , and click on "+add Service"



110053-capture.png


there we can found all available services

so now

how to get all these services list by API



1 ACCEPTED SOLUTION

avatar
Master Mentor

@jessica moore

This API call should do the magic, remember to substitute the values with your actual cluster values

curl -u {ambari-username}:{ambari-password} -H "X-Requested-By: ambari" -X GET http://{ambari-host}:{ambari-port}/api/v1/clusters/{clustername}/services


Hope that helps please revert

View solution in original post

3 REPLIES 3

avatar
Contributor

any answer for my question ?

avatar
Master Mentor

@jessica moore

This API call should do the magic, remember to substitute the values with your actual cluster values

curl -u {ambari-username}:{ambari-password} -H "X-Requested-By: ambari" -X GET http://{ambari-host}:{ambari-port}/api/v1/clusters/{clustername}/services


Hope that helps please revert

avatar
Expert Contributor