Nav

Create a Deployment

The POST operation creates a new deployment if the specified deployment does not already exist. 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
POST http://localhost:8080/console/api/deployments

Example Response:


       
    
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  "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"
    }
  ]
}
 
201
Content-Length: 0
Content-Type: application/json
Server: Apache-Coyote/1.1
Location: http://localhost:8080/console/api/deployments/local$0bc2e0b8-d9f1-468c-9aa3-2966f07b73e8
Date: Wed, 29 Jul 2015 15:21:25 GMT