Get Logs
This request returns a list of log entries of login/logoff / hotdesking on/off or status change actions.
Resource
GET /logs
Parameters
Payload
None
Response
Context
Authorization |
Administrator |
Errors
Example
Request
GET https://xelion.nl/api/v1/master/logs
Response
{
"data": [
{
"object": {
"action": "login",
"user": {
"commonName": "Xelion Beheerder",
"oid": "1001199",
"objectType": "UserProfile"
},
"phone": {
"commonName": "Softphone beheerder",
"oid": "1057482"
},
"date": "2018-10-16 23:00:00",
"time": "14:50:35",
"host": "octopus",
"hostIp": "10.200.10.1",
"remarks": "",
"status": "",
"commonName": "login",
"oid": "1556124",
"objectType": "XCCLogEntry"
},
"links": [
{
"rel": "self",
"method": "GET"
}
]
},
{
"object": {
"action": "logout",
"user": {
"commonName": "Xelion Beheerder",
"oid": "1001199",
"objectType": "UserProfile"
},
"date": "2018-10-16 23:00:00",
"time": "14:58:06",
"host": "octopus",
"hostIp": "",
"remarks": "",
"status": "",
"commonName": "logout",
"oid": "1556140",
"objectType": "XCCLogEntry"
},
"links": [
{
"rel": "self",
"method": "GET"
}
]
},
{
"object": {
"action": "login",
"user": {
"commonName": "Xelion Beheerder",
"oid": "1001199",
"objectType": "UserProfile"
},
"phone": {
"commonName": "Softphone beheerder",
"oid": "1057482"
},
"date": "2018-10-16 23:00:00",
"time": "15:03:01",
"host": "octopus",
"hostIp": "10.200.10.1",
"remarks": "",
"status": "",
"commonName": "login",
"oid": "1556144",
"objectType": "XCCLogEntry"
},
"links": [
{
"rel": "self",
"method": "GET"
}
]
},
],
"meta": {
"links": [
{
"rel": "refresh",
"href": "https://xelion.nl/api/v1/master/log",
"method": "GET"
},
{
"rel": "next",
"href": "https://xelion.nl/api/v1/master/log?after=1689082",
"method": "GET"
},
{
"rel": "previous",
"href": "https://xelion.nl/api/v1/master/log?before=1556124",
"method": "GET"
}
],
"paging": {
"previousId": "1556124",
"nextId": "1689082"
}
}
}