# Range

## Function

This API is used to get the parameter range for Load Default page.

> Note:

> The Range provides reference information for client UI input limits and API request limits. When sending 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/Maintenance/Reset/Range HTTP/1.1

    {
        "version": "1.0",
        "data": {
        }
    }

## Response Message

## Parameter Description

##### Table 1

Parameter | Range | Type | Description
--- | --- | --- | ---
channel |  | bool | Reset Channel related parameters.
record |  | bool | Reset record related parameters.Reset record related parameters
event |  | bool | Reset alarm related parameters.Reset alarm related parameters
ai |  | bool | Reset AI related parameters.Reset ai related parameters
network |  | bool | Reset Network related parameters.Reset network related parameters
device |  | bool | Reset Device related parameters.Reset device related parameters
system |  | bool | Reset System related parameters.Reset system related parameters
secondary_authentication | Max length: 16 | string | Verify admin user password for secondary authentication.
intelligent |  | bool Reset Intellight related parameters. | Reset intelligent related parameters
except_network_param |  | bool | Reset parameters except Network.
base_secondary_authentication |  | Json Object | Encrypted authentication structure, see base_secondary_authentication information table for more information.
default_timeout | 1~120000ms | int | Session timeout field, unit: ms
factory_type | "restore_defaults" "factory_defualts" "restore_to_inactive" | string | Restore factory mode and execute immediately (cloud dedicated).
reset_mode | "restore_defaults" "factory_defualts" "restore_to_inactive" | array | The hardware restores the factory mode. After saving, it can be restored according to the selection when the hardware is reset (cloud dedicated).
format_hdd_switch |  | bool | Hardware One-click recovery Default Whether to format the hard drive (cloud dedicated)

> 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.

Sample1:

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

    {
        "result": "success",
        "data": {
            "channel": {
                "type": "bool"
            },
            "record": {
                "type": "bool"
            },
            "event": {
                "type": "bool"
            },
            "ai": {
                "type": "bool"
            },
            "network": {
                "type": "bool"
            },
            "except_network_param": {
                "type": "bool"
            },
            "device": {
                "type": "bool"
            },
            "system": {
                "type": "bool"
            },
            "secondary_authentication": {
                "type": "string",
                "min_len": 0,
                "max_len": 16
            },
            "default_timeout": 60000
        }
    }

Sample2(cloud dedicated):

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

    {
        "result": "success",
        "data": {
            "factory_type": {
                "type": "string",
                "items": [
                    "restore_to_inactive",
                    "restore_defaults",
                    "factory_defaults"
                ]
            },
            "reset_mode": {
                "type": "array",
                "items": [
                    "restore_to_inactive",
                    "restore_defaults",
                    "factory_defaults"
                ]
            },
            "format_hdd_switch": {
                "type": "bool"
            }
        }
    }

## Error Code

See Response Messages Body and Common error_code for more information.