Range

Function

This API is used to obtain the verification parameter range for password recovery.

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

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
mode"Answer",
"Email",
"Certificate",
"SuperPwd"
stringOnly display the selected password recovery method.
questionslen:1-15int arrayquestion number.
enc_answersarray_size:3,
string_size:1-64
string arrayQuestion answers.
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.
base_enc_passwordobjectEncrypted object. See Table 2 for details.
Table 2
ParameterRangeTypeDescription
peer_keylen:0-1024stringKey.
cipherlen:0-1024stringciphertext.
seq0-1000000intValid duration.

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"},
        "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.