GetDeviceStatus
Description |
Retrieves the Device Status for a specified Device | |
URL |
http://<Server IP>:8080/spectrum-server/rest/V2/GetDeviceStatus | |
Version |
Available Spectrum 4.6 | |
Parameters |
LwFqn | |
fqn (string) | ||
Returns |
PhysicalDeviceStats for the specified device. | |
Method Signature |
@RequestMapping(value = ControllerConstants.REST_EP_GET_DEVICE_STATUS, method = {RequestMethod.POST, RequestMethod.GET}, consumes = MediaType.ALL_VALUE) @ResponseBody public String getDeviceStatus(HttpServletRequest request, @RequestBody(required=true) final LwFqn deviceFqn){ |
Request
http://<Server IP>:8080/spectrum-server/rest/V2/GetDeviceStatus
{
"@kind":"LwFqn",
"fqn": "/Default/PDF Printer"
}
http://<Server IP>:8080/spectrum-server/rest/V2/GetDeviceStatus
{
"@kind":"LwFqn",
"fqn": "/Default/PDF Printer"
}
Response
{
"@kind": "PhysicalDeviceStats",
"id": 10000000,
"parent": 10000000,
"parentName": "PDF Printer",
"logicalDeviceId": 10000000,
"folderId": 0,
"jvmDeviceConfig": 10000000,
"socket": false,
"status": "UP",
"timeStamp": "2022-03-07T22:47:56.987+00:00",
"deviceModel": "PDF",
"deviceFamily": "Family Driver",
"deviceDescription": "This is a new device group.",
"fqn": "/Default/PDF Printer"
}