Query PBX Information
Endpoint
POST /api/v0.0.1/deviceinfo/query?token={token}&type={type}
Request Parameters
No request parameters. Only need to send the request address.
Response Parameters
Name | Type | Description |
devicename | String | The device name. |
sn | String | Serial Number. |
hardwarever | String | Hardware version. |
firmwarever | String | Firmware version. |
systemtime | String | System time. |
uptime | String | Up time. |
extensionstatus | String | Number of registered extensions/Total number of extensions. |
Examples
Request Example
POST /api/v1.1.0/deviceinfo/query?token=277ac400357b509b4a587ff2157f7ad5&type=json HTTP/1.1 HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
POST /api/v1.1.0/deviceinfo/query?token=277ac400357b509b4a587ff2157f7ad5&type=xml HTTP/1.1 HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
“status”: “Success”,
“deviceinfo”: {
“devicename”: “UC501”,
“sn”: “a09805021987”,
“hardwarever”: “3.1”,
“firmwarever”: “4.1.1”,
“systemtime”: “2020-05-19 04:06:07”,
“uptime”: “2020-Mar-23-08:33:22”,
“extensionstatus”: “21/300″
}
}
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
<?xml version=”1.0″ encoding=”utf-8”?>
<xml>
<status>Success</status>
<deviceinfo>
<devicename>UC501</devicename>
<sn>a09805021987</sn>
<hardwarever>3.1</hardwarever>
<firmwarever>4.1.1</firmwarever>
<systemtime>2020-05-22 07:24:00</systemtime>
<uptime>2020-Mar-23-08:33:22</uptime>
<extensionstatus>21/300</extensionstatus>
</deviceinfo>
</xml>