Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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



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

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

any answer for my question ?

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

Expert Contributor
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.