Nav

List All Deployments

The GET operation lists all deployments inside Tcat Server. Returns a JSON type that contains two properties: total, which is the total number of deployments found in the system, and data, which is an array of package types.

Example Request:


       
    
1
GET 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
21
22
23
24
25
26
27
28
29
30
31
200 OK
Transfer-Encoding: chunked
Content-Type: application/json
Server: Apache-Coyote/1.1
Date: Mon, 10 Aug 2015 16:57:39 GMT
  
{
  "total" : 1,
  "data":[
    {
      "id" : "local$8ffe969e-77c1-497d-8d28-4a9bd56d886a",
      "name" : "Test",
      "action" : "DEPLOY",
      "lastModified" : 1257872258783,
      "status" : "In Process",
      "href" : "http://localhost:8080/console/api/deployments/local$8ffe969e-77c1-497d-8d28-4a9bd56d886a",
      "applications": [
        {
          "name" : "test.war",
          "href" : "http://localhost:8080/console/api/registry/Applications/test.war/1.0"
        }
      ],
      "servers": [
        {
          "name" : "DevelopmentServer1 ",
          "href" : "http://localhost:8080/console/api/servers/local$c458777f-122f-4f7a-8451-6cccfdd6c94e"
        }
      ]
    }
  ]
}