Contact Free trial Login

Update a Server

The PUT operation updates the specified server’s properties. Currently the name and group properties can be updated.

Example Request:

PUT http://localhost:8080/console/api/servers/local$fa1b187e-0436-4d44-a6c1-140416d4d440
Content-Type: application/json

{
  "name" : "NewName",
  "groups": [
    {
      "href" : "http://localhost:8080/console/api/serverGroups/02876a19-6edc-49e8-9a47-dc2cc3f33afd"
    }
  ]
}

Example Response:

200 OK
Transfer-Encoding: chunked
Content-Type: application/json
Server: Apache-Coyote/1.1
Location: http://localhost:8080/console/api/servers/local$fa1b187e-0436-4d44-a6c1-140416d4d440
Date: Mon, 10 Aug 2015 19:38:42 GMT

{
  "id" : "local$fa1b187e-0436-4d44-a6c1-140416d4d440",
  "href" : "http://localhost:8080/console/api/servers/servers/local$fa1b187e-0436-4d44-a6c1-140416d4d440",
  "name" : "NewName",
  "packages" : [],
  "type" : "Apache Tomcat 6.x",
  "hosts" : ["http://localhost:8080"],
  "groups": [
    {
      "href" : "http://localhost:8080/console/api/serverGroups/02876a19-6edc-49e8-9a47-dc2cc3f33afd"
    }
  ]
}