Skip to main content
yosefgogogogo93
Silver ⭐️
Jul 24, 2019 6:50 PM UTC
Solved

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



Shelton
SheltonAnswer
Gold ⭐️⭐️⭐️
Jul 25, 2019 6:00 AM UTC

@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

3 replies

yosefgogogogo93
Silver ⭐️
Jul 24, 2019 11:33 PM UTC

any answer for my question ?

Translate
Shelton
SheltonAnswer
Gold ⭐️⭐️⭐️
Jul 25, 2019 6:00 AM UTC

@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

Translate
isoardi
Gold ⭐️⭐️
Jul 25, 2019 1:29 PM UTC