Nav

Get File Metadata

The GET operation returns metadata from the specified file from a server relative to CATALINA_BASE. URLs are of the form http://localhost:8080/console/api/servers/73d89173-290e-4cb3-a61c-e11deb74767d/files/<path>?metadata=true where <path> is the path of the file you want to retrieve.

Example Request:


       
    
1
GET http://localhost:8080/console/api/servers/73d89173-290e-4cb3-a61c-e11deb74767d/files/conf/server.xml?metadata=true

Example Response:


       
    
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
200
Transfer-Encoding: chunked
Content-Type: application/json
Server: Apache-Coyote/1.1
Date: Tue, 28 Jul 2015 16:17:12 GMT
  
{
  "name" : "server.xml",
  "size" : 6460,
  "absolutePath" : "/usr/local/TcatServer6-R2/conf/server.xml",
  "directory" : false,
  "lastModified" : 1256052353600,
  "userCanExecute" : true,
  "userCanRead" : true,
  "userCanWrite" : true
}