Summary
Returns a collection of the currently configured clusters.
GET /clusters
Response
HTTP CODE | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Example
Get the collection of all currently configured clusters.
GET /clusters
200 OK
{
"href" : "http://your.ambari.server/api/v1/clusters",
"items" : [
{
"href" : "http://your.ambari.server/api/v1/clusters/c1",
"Clusters" : {
"cluster_name" : "c1",
"version" : "HDP-1.2.0"
}
}
]
}