ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siddharth Wagle <swa...@hortonworks.com>
Subject Re: API to Get list of client components on a specific host
Date Mon, 25 Sep 2017 17:14:32 GMT
You can do this:


/api/v1/clusters/<cluster-name>/host_components?component/ServiceComponentInfo/category=CLIENT&HostRoles/host_name=<hostname>


- Sid


________________________________
From: Latha Appanna <lathaxyz012@gmail.com>
Sent: Monday, September 25, 2017 9:06 AM
To: user@ambari.apache.org
Subject: API to Get list of client components on a specific host

Hello,

Can we have a filter in below Ambari api to get the list of components on a specific host?


curl   -H "X-Requested-By: ambari"   -X GET "https://ambari_server:port/api/v1/clusters/<cluster_name>/components?ServiceComponentInfo/category=CLIENT&fields=ServiceComponentInfo/category"

Thanks & Regards,
Latha

Mime
View raw message