Range

Function

This API is used to get parameter range for System > General 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/General/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1

ParameterRangeTypeDescription
device_nameMax length: 31bytestringDevice name
menu_timeouts0,30,60,120,300,600int32Menu auto lock Time,in seconds.
FisheyeOrAI"Fisheye"
"AI"
stringOnly for NVR. AI and Fisheye are mutually exclusive.
session_timeout5-1440int32Web session timeout time,in minutes.
preview_session_timeoutbooleanbooleanPreview/playback session timed out switch.

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.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "device_name": {
            "type": "string",
            "min_len": 1,
            "max_len": 31
        },
        "menu_timeouts": {
            "type": "int32",
            "unit": "second",
            "items": [
                0,
                30,
                60,
                120,
                300,
                600
            ]
        },
        "session_timeout": {
            "type": "int32",
            "min": 5,
            "max": 1440
        },
        "preview_session_timeout": {
            "type": "bool"
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.