Getting Device Status
→ Use the online
facet in order to get the online status of a thin client with a specific ID:
curl \
--request GET\
--header 'Cookie: JSESSIONID=3FB2F3F6A089FE9029DFD6DAFEF146DC' \
https://[server]:8443/umsapi/v3/thinclients/27?facets=online
The response contains, among others, the online
property, which can have the values true
and false
:
Response
{
"unitID": "00E0C54DCB8E",
"mac": "00E0C54DCB8E",
"firmwareID": "21",
"lastIP": "172.30.91.43",
"online": false,
"id": "27",
"name": "Front Desk",
"parentID": "-1",
"movedToBin": false,
"objectType": "tc",
"links": [
{
"rel": "self",
"href": "https://172.30.91.227:8443/umsapi/v3/thinclients/27"
},
{
"rel": "Parent",
"href": "root"
},
{
"rel": "Firmware",
"href": "https://172.30.91.227:8443/umsapi/v3/firmwares/21"
}
]
}