Range

Function

This API is used to get the range of RecoverPassword config parameters.

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/RecoverPassword/Range HTTP/1.1
{
    "version": "1.0",
    "data": {

    }
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
answer_flagboolWhether to support question and answer verification retrieval.
email_flagboolWhether to support email retrieval.
certificate_flagboolWhether to support certificate retrieval.
super_pwd_flagboolWhether to support super password.
emaillen:1-64stringEmail.
questionslen:1-15int arrayquestion number.
enc_answersarray_size:3,
string_size:1-64
string arrayQuestion answers.
mode"Answer",
"Email",
"Certificate",
"SuperPwd"
stringOnly display the selected password recovery method.
email_codelen:1-64stringEmail verification code.
certificatelen:1-128stringCertificate code.
super_pwdlen:1-16stringSuper password.
system_timelen:1-64stringDate time.
mac_addresslen:0-35stringMac address.

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": {
        "answer_flag": {
            "type": "bool"
        },
        "email_flag": {
            "type": "bool"
        },
        "certificate_flag": {
            "type": "bool"
        },
        "super_pwd_flag": {
            "type": "bool"
        },
        "questions": {
            "type": "array",
            "size": 3,
            "items": [
                {
                    "type": "int32",
                    "items": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15
                    ]
                }
            ]
        },
        "enc_answers": {
            "type": "array",
            "size": 3,
            "items": [
                {
                    "type": "string",
                    "min_len": 1,
                    "max_len": 64
                }
            ]
        },
        "email": {
            "type": "string",
            "min_len": 1,
            "max_len": 64
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.