Nav

Update a Deployment

The PUT operation updates the specified deployment. The name, applications, and servers property of the deployment type are required, whereas the applications and servers arrays can be empty if desired.

Example Request:


       
    
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PUT http://localhost:8080/console/api/deployments/local$0bc2e0b8-d9f1-468c-9aa3-2966f07b73e8
Content-Type: application/json

{
  "name" : "Test",
  "applications": [
    {
      "href" : "http://localhost:8080/console/api/registry/Applications/test.war/1.0"
    }
  ],
  "servers": [
    {
      "href" : "http://localhost:8080/console/api/servers/local$c458777f-122f-4f7a-8451-6cccfdd6c94e"
    }
  ]
}

Example Response:


       
    
1
2
3
4
5
6
200 OK
Content-Length: 0
Content-Type: application/json
Server: Apache-Coyote/1.1
Date: Mon, 10 Aug 2015 15:21:25 GMT