Contact Free trial Login

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:

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

Example Response:

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

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.