/api/system/status
Use this interface to get system status.
Prototype
Protocol |
HTTP/HTTPS GET |
URL |
ip[:port]/api/system/status |
Content-Type |
Response: Content-Type: application/json |
Request Cookies
Parameter |
Description |
mwcloud-sid |
A string that is used to identify current logged-in user. |
mwcloud-uid |
Current logged-in username. |
Request URL parameters
Parameter |
Description |
global-config |
Setting to non-zero will provide global default configuration information in the returned information. |
Request Example
GET /api/system/status HTTP/1.1
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin;
Response Parameters
Parameter |
Description |
Content-Type |
Value: 'application/json; charset=UTF-8' |
Response Body
Server Status
Parameter |
Description |
date-time |
Current server system time, in seconds. |
cloud-version |
ControlHub version number. |
hardware-ver |
ControlHub hardware version. If the field is not included, it represents the software version. |
expired-time |
Session timeout for users, in minutes. |
System Status Statistics
Parameter |
Description |
cpu |
Current CPU usage |
disk-info |
Storage space information, refer to Storage Space Information |
mem |
Current memory usage ratio |
net-tx |
Current network transmission traffic, in Mbps |
net-rx |
Current network reception traffic, in Mbps |
status-code |
Running status mask, refer to Status Codes |
Running Status Code
Code |
Description |
0 |
Idle |
0x1000 |
There is a new version available |
0x2000 |
System is rebooting |
0x4000 |
SRT service startup failed |
0x8000 |
System is updating |
0x10000 |
System is resetting all settings |
0x20000 |
System is importing configurations |
The running status code will bitwise OR operator with updating service status code.
Parameter |
Description |
total |
Total storage space, in MB. |
free |
Free storage space size, in MB |
Device Global Statistics
Parameter |
Description |
num-all |
Total number of devices |
num-online |
Number of online devices |
num-pending |
Number of devices pending approval |
num-warn |
Number of devices with warnings |
Channel Global Statistics
Parameter |
Description |
num-all |
Current channel count |
num-enable |
Current enabled channel count |
Output Node Global Statistics
Parameter |
Description |
num-enable |
Current total number of outputs in use |
Clients Global Statistical
Parameter |
Description |
num-all |
Current total number of clients |
License Status
License Status
Value |
Description |
0 |
normal |
-10 |
Invalid |
-14 |
Not exists |
-20 |
No license |
-107 |
expired |
-109 |
error |
-110 |
terminated |
-111 |
occupied by other device |
License
Parameter |
Description |
limited-date |
Expiry time of the license, precision to the second. |
max-dev-count |
Maximum number of devices allowed |
max-channel-count |
Maximum number of channels that can be created |
max-stream-count |
Maximum total number of output streams that can be added to a channel (output nodes) |
In addition to the license restrictions, there are the following limitations:
- Channel creation limit: 100 (reference value)
- Global output node enabled limit: 50 (reference value)
- Input node creation limit: 100 maximum
- Output node creation limit: 100 maximum
Response Example
{
"result": 0,
"status": {
"cur-license": {
"limited-date": 1842912000,
"max-channel-count": 1000,
"max-dev-count": 1000,
"max-stream-count": 1000
},
"global-config": {
"device": {
"input": {
"protocol": 1,
"stream-index": 0
},
"output": {
"buffer-ms": 120,
"protocol": 1
}
}
},
"license-reg": {
"license": {
"limited-date": 1842912000,
"max-channel-count": 1000,
"max-dev-count": 1000,
"max-stream-count": 1000
},
"sn": "5222************************1345",
"status": 0,
"user-name": "test-ag5"
},
"pwd-rule": {
"chk-name": 0,
"length": 0,
"number": 0,
"special": 0,
"uppercase": 0
},
"system": {
"channel": {
"num-all": 54,
"num-enable": 2
},
"client": {
"num-all": 0
},
"device": {
"num-all": 47,
"num-online": 20,
"num-pending": 2,
"num-warn": 27
},
"info": {
"cloud-version": "2.1.28",
"date-time": 1694400221,
"expired-time": 30
},
"output": {
"num-enable": 28
},
"status": {
"cpu": 9,
"disk-info": {
"free": 13298,
"total": 31114
},
"mem": 65,
"net-rx": 8.4591809216443,
"net-tx": 0.10232094887856606,
"status-code": 0
}
}
}
}