List Host Components ===== [Back to Resources](index.md#resources) **Summary** Returns a collection of components running on a given host. GET /clusters/:name/hosts/:hostName/host_components **Response**
HTTP CODE Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
500 Internal Server Error
**Example** Returns a collection of components running on a the host named "h1" on the cluster named "c1". GET /clusters/c1/hosts/h1/host_components 200 OK { "href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/host1/host_components", items" : [ { "href" : "your.ambari.server/api/v1/clusters/c1/hosts/host1/host_components/DATANODE", "HostRoles" : { "cluster_name" : "c1", "component_name" : "DATANODE", "host_name" : "host1" }, "host" : { "href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/host1" } }, { "href" : "your.ambari.server/api/v1/clusters/c1/hosts/host1/host_components/HBASE_CLIENT", "HostRoles" : { "cluster_name" : "c1", "component_name" : "HBASE_CLIENT", "host_name" : "host1" }, "host" : { "href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/host1" } }, ... ] }