Range

Function

This API is used to get the auto restart page parameter range.

Request Message

None.

Sample:

POST /API/Maintenance/AutoReboot/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
auto_rebootboolAuto restart switch.Automatic maintenance switch..
period_mode"EveryDay",
"EveryWeek",
"EveryMonth"
stringThe model of the maintenance cycle.
week"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sun"
stringWeekdays of the week.(When MaintainPeriod is Week)
day1~31intDay of months.(When MaintainPeriod is Month)
timestringRestart time.Format: hours : minutes(Each digit must be written with two digits)

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "auto_reboot": {
            "type": "bool"
        },
        "period_mode": {
            "type": "string",
            "items": [
                "EveryDay",
                "EveryWeek",
                "EveryMonth"
            ]
        },
        "week": {
            "type": "string",
            "items": [
                "Mon",
                "Tue",
                "Wed",
                "Thu",
                "Fri",
                "Sat",
                "Sun"
            ]
        },
        "day": {
            "type": "int32",
            "min": 1,
            "max": 31
        },
        "time": {
            "type": "string",
            "min_len": 0,
            "max_len": 5
        },
        "secondary_authentication": {
            "type": "string",
            "min_len": 0,
            "max_len": 16
        },
        "show_tips": false
    }
}

Error Code

See Response Messages Body and Common error_code for more information.