Summary
Return the component identified by ":componentName" for for the service identifired by ":serviceName".
GET /clusters/:name/services/:serviceName/components/:componentName
Response
HTTP CODE | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Example
GET /clusters/c1/services/HDFS/components/DATANODE
200 OK
{
"href" : "http://your.ambari.server/api/v1/clusters/c1/services/HDFS/components/DATANODE",
"metrics" : {
"process" : {
...
},
"rpc" : {
...
},
"ugi" : {
...
},
"dfs" : {
"datanode" : {
...
}
},
"disk" : {
...
},
"cpu" : {
...
},
"rpcdetailed" : {
...
},
"jvm" : {
...
},
"load" : {
...
},
"memory" : {
...
},
"network" : {
...
},
},
"ServiceComponentInfo" : {
"cluster_name" : "c1",
"component_name" : "DATANODE",
"service_name" : "HDFS"
"state" : "STARTED"
},
"host_components" : [
{
"href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/host1/host_components/DATANODE",
"HostRoles" : {
"cluster_name" : "c1",
"component_name" : "DATANODE",
"host_name" : "host1"
}
}
]
}