Update Services

Back to Resources

Summary

Update all services of the cluster identified by “:clusterName”.

PUT/clusters/:clusterName/services

Response

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"
  } 
}