Range

Function

This API is used to get the Network > HTTPS parameter range.

Request Message

None.

Sample:

POST /API/NetworkConfig/https/Range HTTP/1.1
{
    "version":"1.0",
    "data":{}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
https_enableboolHttps switch
operate"Install"
"Uninstall"
"Switch"
file_type"Default",
"Custom"
stringDefault: Default installation
Custom: Custom installation
Passed when switching.
file_existint0: Does not exist, 1: Exists
(only used, not set, required for customization).
ca_file0-10240string(Only set, not used).
key_file0-10240string(Only set, not used).
key_password0-128string(Only set, not used).
root_ca_file0-10240string(Only set, not used).
subjectstringIssued to (required by Custom).
issuerstringIssuer(required by Custom).
not_beforestringStarting time(required by Custom).
not_afterstringEnd Time(required by Custom).

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "https_enable": {"type": "bool"},
        "file_type": {
            "type": "string",
            "items": [
                "Default",
                "Custom"
            ]
        },
        "file_exist": {
            "type": "int32",
            "items": [
                0,
                1
            ]
        },
        "ca_file": {
            "type": "string",
            "min_len": 0,
            "max_len": 10240
        },
        "key_file": {
            "type": "string",
            "min_len": 0,
            "max_len": 10240
        },
        "root_ca_file": {
            "type": "string",
            "min_len": 0,
            "max_len": 10240
        },
        "operate": {
            "type": "string",
            "items": [
                "Install",
                "Uninstall",
                "Switch"
            ]
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.