Range

Function

This API is used to get parameter range for System > User page.

Note:

The Range provides reference information for client UI input limits and API request limits. When sending Get and Set requests, the parameters must be strictly limited according to the Range, otherwise the request may be rejected by the device.

Request Message

None.

Sample:

POST /API/SystemConfig/User/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1

ParameterRangeTypeDescription
user_infoobjectUser info object,see Table 2 for more information

Table 2

User info object

ParameterRangeTypeDescription
userADMIN
USER1
USER2
USER3
USER4
USER5
USER6
objectUser object,see Table 3 for more information

Table 3

User object

ParameterRangeTypeDescription
user_stateNone
Normal
NotYetStart
Expires
ExpiresClearInfo
string"None":User not in use.
"Normal":User is normal.
"NotYetStart":User not started yet.
"Expires":Expired, user information will be cleared three days after the expires time.
"ExpiresClearInfo":Expired, user information has been cleared.
user_enablebooleanbooleanEnable user.
usernameMax length: 16 bytesstringUser name.
password_enablebooleanbooleanEnable user password.
IPC does not use this field, a password must be set.
password_emptybooleanbooleanOnly for Get request.The client does not receive the password, this field is used to determine whether the password has been set.
passwordMax length: 16 bytesstringUser password.Only for Set request.
confirm_passwordMax length: 16 bytesstringConfirm user password.Only for Set request.
login_num1-5int32Maximum simultaneous login limit for this user.
permissionobjectPermission object,see Table 4 for more information
base_enc_passwordobjectEncrypted password.

Table 4

Permission object

ParameterRangeTypeDescription
log_searchbooleanbooleanLog permission
parameterbooleanbooleanParameter setting permission
auto_rebootbooleanbooleanAuto reboot permission
manual_recordbooleanbooleanManual record permission
diskbooleanbooleanDisk permission,IPC does not use this field.
remote_loginbooleanbooleanRemote login permission,IPC does not use this field.
seq_controlbooleanbooleanSEQ control permission,IPC does not use this field.
manual_capturebooleanbooleanManual capture permission
audiobooleanbooleanAudio permission
backup_enablebooleanbooleanBackup permission,only for NVR
live_enablebooleanbooleanPreview permission
playback_enablebooleanbooleanVideo playback permission
ptz_enablebooleanbooleanPtz control permission
backup_channelCH1
CH2
...
CHx
IP_CH1
...
IP_CHx
WIFI_CH1
...
WIFI_CHx
string arrayBackup channels,only for NVR.
The number of channels depends on the device model.
live_channelCH1
CH2
...
CHx
IP_CH1
...
IP_CHx
WIFI_CH1
...
WIFI_CHx
string arrayBackup channels,only for NVR.
The number of channels depends on the device model.
playback_channelCH1
CH2
...
CHx
IP_CH1
...
IP_CHx
WIFI_CH1
...
WIFI_CHx
string arrayBackup channels,only for NVR.
The number of channels depends on the device model.
ptz_channelCH1
CH2
...
CHx
IP_CH1
...
IP_CHx
WIFI_CH1
...
WIFI_CHx
string arrayBackup channels,only for NVR.
The number of channels depends on the device model.
rtsp_rightbooleanbooleanRtsp permission,only for IPC.
license_platebooleanbooleanLicense plate permission

Tips:

The response message of the Range request may not contain all the fields in the above table, and the fields not included indicate that the device does not support this parameter configuration.

Admin response message

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "user_info": {
            "type": "object",
            "items": {
                "ADMIN": {
                    "type": "object",
                    "items": {
                        "user_enable": {
                            "type": "bool"
                        },
                        "username_enable": {
                            "type": "bool"
                        },
                        "username": {
                            "type": "string",
                            "min_len": 1,
                            "max_len": 16
                        },
                        "login_num": {
                            "type": "int32",
                            "mode": "rw",
                            "min": 1,
                            "max": 5
                        },
                        "password_strength": {
                            "type": "string",
                            "items": [
                                "Low",
                                "Medium",
                                "High"
                            ]
                        },
                        "password_disable": {
                            "type": "bool"
                        },
                        "password_empty": {
                            "type": "bool"
                        },
                        "password": {
                            "type": "string",
                            "min_len": 8,
                            "max_len": 16
                        },
                        "confirm_password": {
                            "type": "string",
                            "min_len": 8,
                            "max_len": 16
                        },
                        "secondary_authentication": {
                            "type": "string",
                            "min_len": 8,
                            "max_len": 16
                        }
                    }
                },
                "USER1": {
                    "type": "object",
                    "items": {
                        "user_enable": {
                            "type": "bool"
                        },
                        "username_enable": {
                            "type": "bool"
                        },
                        "username": {
                            "type": "string",
                            "min_len": 1,
                            "max_len": 16
                        },
                        "login_num": {
                            "type": "int32",
                            "mode": "rw",
                            "min": 1,
                            "max": 5
                        },
                        "password_strength": {
                            "type": "string",
                            "items": [
                                "Low",
                                "Medium",
                                "High"
                            ]
                        },
                        "password_disable": {
                            "type": "bool"
                        },
                        "password_empty": {
                            "type": "bool"
                        },
                        "password": {
                            "type": "string",
                            "min_len": 8,
                            "max_len": 16
                        },
                        "confirm_password": {
                            "type": "string",
                            "min_len": 8,
                            "max_len": 16
                        },
                        "secondary_authentication": {
                            "type": "string",
                            "min_len": 8,
                            "max_len": 16
                        },
                        "permission": {
                            "type": "object",
                            "items": {
                                "parameter": {
                                    "type": "bool"
                                },
                                "log_search": {
                                    "type": "bool"
                                },
                                "auto_reboot": {
                                    "type": "bool"
                                },
                                "disk": {
                                    "type": "bool"
                                },
                                "manual_record": {
                                    "type": "bool"
                                },
                                "remote_login": {
                                    "type": "bool"
                                },
                                "seq_control": {
                                    "type": "bool"
                                },
                                "manual_capture": {
                                    "type": "bool"
                                },
                                "audio": {
                                    "type": "bool"
                                },
                                "face_search": {
                                    "type": "bool"
                                },
                                "license_plate": {
                                    "type": "bool"
                                },
                                "change_password": {
                                    "type": "bool"
                                },
                                "backup_enable": {
                                    "type": "bool"
                                },
                                "live_enable": {
                                    "type": "bool"
                                },
                                "playback_enable": {
                                    "type": "bool"
                                },
                                "ptz_enable": {
                                    "type": "bool"
                                },
                                "backup_channel": {
                                    "type": "array",
                                    "min_size": 0,
                                    "max_size": 16,
                                    "items": {
                                        "type": "string",
                                        "items": [
                                            "CH1",
                                            "CH2",
                                            "CH3",
                                            "CH4",
                                            "CH5",
                                            "CH6",
                                            "CH7",
                                            "CH8",
                                            "CH9",
                                            "CH10",
                                            "CH11",
                                            "CH12",
                                            "CH13",
                                            "CH14",
                                            "CH15",
                                            "CH16"
                                        ]
                                    }
                                },
                                "live_channel": {
                                    "type": "array",
                                    "min_size": 0,
                                    "max_size": 16,
                                    "items": {
                                        "type": "string",
                                        "items": [
                                            "CH1",
                                            "CH2",
                                            "CH3",
                                            "CH4",
                                            "CH5",
                                            "CH6",
                                            "CH7",
                                            "CH8",
                                            "CH9",
                                            "CH10",
                                            "CH11",
                                            "CH12",
                                            "CH13",
                                            "CH14",
                                            "CH15",
                                            "CH16"
                                        ]
                                    }
                                },
                                "playback_channel": {
                                    "type": "array",
                                    "min_size": 0,
                                    "max_size": 16,
                                    "items": {
                                        "type": "string",
                                        "items": [
                                            "CH1",
                                            "CH2",
                                            "CH3",
                                            "CH4",
                                            "CH5",
                                            "CH6",
                                            "CH7",
                                            "CH8",
                                            "CH9",
                                            "CH10",
                                            "CH11",
                                            "CH12",
                                            "CH13",
                                            "CH14",
                                            "CH15",
                                            "CH16"
                                        ]
                                    }
                                },
                                "ptz_channel": {
                                    "type": "array",
                                    "min_size": 0,
                                    "max_size": 16,
                                    "items": {
                                        "type": "string",
                                        "items": [
                                            "CH1",
                                            "CH2",
                                            "CH3",
                                            "CH4",
                                            "CH5",
                                            "CH6",
                                            "CH7",
                                            "CH8",
                                            "CH9",
                                            "CH10",
                                            "CH11",
                                            "CH12",
                                            "CH13",
                                            "CH14",
                                            "CH15",
                                            "CH16"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "USER1": {
                    ...
                    // Emitted
                },
                ... // Emitted
                "USER6": {
                    ...
                    // Emitted
                },
            }
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.