# 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

Parameter | Range | Type | Description
--- | --- | --- | ---
auto_reboot |  | bool | Automatic restart switch.Automatic maintenance switch..
period_mode | "EveryDay", "EveryWeek", "EveryMonth" | string | The model of the maintenance cycle.
week | "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" | string | Weekdays of the week.(When MaintainPeriod is Week)
day | 1~31 | int | Day of months.(When MaintainPeriod is Month)
time |  | string | Restart time.Format: hours : minutes(Each digit must be written with two digits)
maintenance_interval | "1 Day", "7 Day", "30 Day" | string | The automatic maintenance period mode indicates the interval of days(cloud dedicated)
maintenance_time | "00:00-02:00", "02:00-04:00", "04:00-06:00", "06:00-08:00", "08:00-10:00", "10:00-12:00", "12:00-14:00", "14:00-16:00", "16:00-18:00", "18:00-20:00", "20:00-22:00", "22:00-24:00" | string | Automatic maintenance period(cloud dedicated)
secondary_authentication |  | bool | On the web side, this field is used to determine whether manual restart should transmit the admin password for authentication.

Sample:

    HTTP/1.1 200 OK
    Content-Type: application/json

    {
        "result": "success",
        "data": {
            "auto_reboot": {"type": "bool"},
            "maintenance_interval": {
                "type": "string",
                "items": [
                    "1 Day",
                    "7 Day",
                    "30 Day"
                ]
            },
            "maintenance_time": {
                "type": "string",
                "items": [
                    "00:00-02:00",
                    "02:00-04:00",
                    "04:00-06:00",
                    "06:00-08:00",
                    "08:00-10:00",
                    "10:00-12:00",
                    "12:00-14:00",
                    "14:00-16:00",
                    "16:00-18:00",
                    "18:00-20:00",
                    "20:00-22:00",
                    "22:00-24:00"
                ]
            }
        }
    }

## Error Code

See Response Messages Body and Common error_code for more information.