Set

Function

This API is used to set Network > HTTPS parameters.

Request Message

Parameter Description

See Network > HTTPS > Range > Parameter Description > Table 1 for parameter description.

Sample:

POST /API/NetworkConfig/https/Set HTTP/1.1
{
    "version":"1.0",
    "data":
    {
        "https_enable":true,
        "file_type":"Default",
        "file_exist":0,
        "operate":"Switch"
    }
}

Response Message

None.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result":"success",
    "data":{}
}

Error Code

Table 1
error_codecommet
install_failedInstallation failed.
uninstall_failedUninstall failed.
uninstall_not_allowIn use, uninstallation is not allowed.
switch_failedSwitching failed.
upload_failedInstallation failed.
length_too_longThe data is too large.
unsafe_siganatureUnsafe certificate.
cert_key_not_matchCertificate does not match.
invalid_cert_timeInvalid certificate time.
invalid_private_keyInvalid private key file.
invalid_certInvalid certificate file.
invalid_key_usageInvalid certificate key usage.
invalid_cert_chainInvalid certificate chain.
invalid_cacertInvalid root certificate.
invalid_cacert_timeContains an invalid root certificate.

See Table 1, Response Messages Body and Common error_code for more information.