Summary
Update all services of the cluster identified by ":clusterName".
PUT/clusters/:clusterName/services
Response
HTTP CODE | Description |
---|---|
200 | OK |
202 | Accepted |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example
Update the state of all ‘INSTALLED’ services to be ‘STARTED’ for the cluster "c1".
PUT/clusters/c1/services?ServiceInfo/state=INSTALLED/
{
"ServiceInfo": {
"state" : "STARTED”
}
}
202 Accepted
{
"href" : "http://your.ambari.server/api/v1/clusters/c1/requests/3",
"Requests" : {
"id" : 3,
"status" : "InProgress"
}
}