Method GetAvailableServerLogFiles
GetAvailableServerLogFiles(String)
Get file info for all available log files
Declaration
List<LogFileInfoContract> GetAvailableServerLogFiles(string connectionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<LogFileInfoContract> | A list of file infos for log files |
Examples
POST http://YourServerName/InfoShare/Json/Server/GetAvailableServerLogFiles
Example for get available server log files.{
"connectionId": "e3b3b164-9b0b-4d00-9981-83fe4835df1a"
}
Response:
{
"GetAvailableServerLogFilesResult": [{
"Active": false,
"FileSize": 21116,
"LastWriteTime": "2019-09-10T14:13:37",
"LogFileName": "Server-10.log"
}, {
"Active": false,
"FileSize": 11593,
"LastWriteTime": "2019-09-11T13:04:45",
"LogFileName": "Server-11.log"
}, {
"Active": false,
"FileSize": 17406,
"LastWriteTime": "2019-09-12T09:23:15",
"LogFileName": "Server-12.log" }]
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Not enough rights ({accessOperationName}, {accessOperationId}) (10071) |