Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Solved Go to solution
Highlighted

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

Accepted Solutions
Highlighted

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

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
Highlighted

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

any answer for my question ?

Highlighted

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

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

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

Rising Star
Don't have an account?
Coming from Hortonworks? Activate your account here