Skip to main content

Server Operations Web Services - List/Download Logs

Universal Controller supports the following RESTful-based web services for the List/Download Logs Server Operations, which are listed alphabetically on this page.

Formatting specifications for each web service, including details about parameter requirements, are provided.

List Log Files

Description

URI

http://host_name/uc/resources/serveroperation/listlog

HTTP Method

GET

Description

Retrieve the log details using a specific query parameter.

Example URI

http://localhost:8080/uc/resources/serveroperation/listlog

Authentication

HTTP Basic

Consumes Content-Type

n/a

Produces Content-Type

application/xml, application/json

Example Response

See List Log Files Example Response.

List Log Files: Example Response

JSON
JSON
{
"operation": "List Logs",
"success": true,
"output": "",
"logs": [
{
"logName": "uc.d20200508.t115303.log",
"logDate": "2020-05-08 11:53:03 -0400",
"logSize": "112"
},
{
"logName": "uc.d20200508.t115847.log",
"logDate": "2020-05-08 11:58:47 -0400",
"logSize": "112"
},
{
"logName": "uc.d20200508.t120323.log",
"logDate": "2020-05-08 12:03:23 -0400",
"logSize": "112"
}
]
}

Download Log Files

Description

URI

http://host_name/uc/resources/serveroperation/downloadlog

HTTP Method

GET

Description

Retrieve the log details using a specific query parameter.

Example URI

Authentication

HTTP Basic

Consumes Content-Type

n/a

Produces Content-Type

application/octet-stream

Request Parameter

See Download Log Files: Request Parameter.

Download Log Files: Request Parameter

The following request parameter will be needed for download a log file. This is a List type request parameter; you can request multiple files using the same parameter name.

Property

UI Field Name

Description

Specifications

Required

logName

n/a

Request parameter to add the files for download.

String value of the log file name.

Y