Range

Function

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

Request Message

None

Sample:

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

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
ddns_enableboolDdns funtion switch.
server"DDNS_3322",
"DYNDNS",
"NO_IP",
"CHANGEIP",
"DNSEXIT"
stringDDNS server IP address or name
domainMax length: 35 bytestringHost name of this device
domain_suffixstringDomain suffix
usernamestring length:0-32stringDDNS user name.
passwordstring length:0-32stringDDNS user password.(Only indicate the range in Range, deprecated in Get, Set and Test, pass empty)
password_emptyboolIs the password empty
service_idstringB03 dedicated
test_befault_saveboolDo you need to test before saving? The default is FALSE.
base_enc_passwordJson ObjectEncrypted Password,see base_enc_password for more information.
api_keystring length:0-32stringdnsexit api-key.
api_key_emptyboolWhether the api-key can be empty
base_enc_api_keyJson ObjectEncrypted api-key, same as base_enc_password, see base_enc_password for more information.
api_key_url"https://dnsexit.com"stringOfficial website of dnsexit service provider.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "ddns_enable": {
            "type": "bool"
        },
        "server": {
            "type": "string",
            "items": [
                "DYNDNS",
                "NO_IP",
                "CHANGEIP",
                "DNSEXIT"
            ]
        },
        "domain": {
            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
            "type": "string",
            "mode": "rw",
            "ranges": [
                {
                    "min_len": 0,
                    "max_len": 35
                },
                {
                    "min_len": 1,
                    "max_len": 35
                }
            ]
        },
        "username": {
            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
            "type": "string",
            "mode": "rw",
            "ranges": [
                {
                    "min_len": 0,
                    "max_len": 32
                },
                {
                    "min_len": 1,
                    "max_len": 32
                }
            ]
        },
        "password": {
            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
            "type": "string",
            "mode": "rw",
            "ranges": [
                {
                    "min_len": 0,
                    "max_len": 32
                },
                {
                    "min_len": 1,
                    "max_len": 32
                }
            ]
        },
        "api_key": {
            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
            "type": "string",
            "mode": "rw",
            "ranges": [
                {
                    "min_len": 0,
                    "max_len": 32
                },
                {
                    "min_len": 1,
                    "max_len": 32
                }
            ]
        },
        "password_empty": {
            "type": "bool"
        },
        "api_key_empty": {
            "type": "bool"
        },
        "domain_suffix": {
            "type": "string",
            "items": [
                "",
                "",
                "",
                ""
            ]
        },
        "test_befault_save": {
            "type": "bool"
        },
        "api_key_url": "https://dnsexit.com",
        "server_content": {
            "type": "object",
            "items": {
                "DYNDNS": {
                    "type": "string",
                    "items": [
                        "domain",
                        "username",
                        "password",
                        "ddnstest"
                    ]
                },
                "NO_IP": {
                    "type": "string",
                    "items": [
                        "domain",
                        "username",
                        "password",
                        "ddnstest"
                    ]
                },
                "CHANGEIP": {
                    "type": "string",
                    "items": [
                        "domain",
                        "username",
                        "password",
                        "ddnstest"
                    ]
                },
                "DNSEXIT": {
                    "type": "string",
                    "items": [
                        "domain",
                        "api_key",
                        "ddnstest"
                    ]
                }
            }
        },
        "ddns_v1": {
            "type": "object",
            "items": {
                "DYNDNS": {
                    "type": "object",
                    "items": {
                        "domain": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 35
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 35
                                }
                            ]
                        },
                        "username": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 32
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 32
                                }
                            ]
                        },
                        "password": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 32
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 32
                                }
                            ]
                        }
                    }
                },
                "NO_IP": {
                    "type": "object",
                    "items": {
                        "domain": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 35
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 35
                                }
                            ]
                        },
                        "username": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 32
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 32
                                }
                            ]
                        },
                        "password": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 32
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 32
                                }
                            ]
                        }
                    }
                },
                "CHANGEIP": {
                    "type": "object",
                    "items": {
                        "domain": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 35
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 35
                                }
                            ]
                        },
                        "username": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 32
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 32
                                }
                            ]
                        },
                        "password": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 32
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 32
                                }
                            ]
                        }
                    }
                },
                "DNSEXIT": {
                    "type": "object",
                    "items": {
                        "domain": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 35
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 35
                                }
                            ]
                        },
                        "api_key": {
                            "description": "Each range {min_len,max_len} corresponds to one ddns_enable state [false,true].",
                            "type": "string",
                            "mode": "rw",
                            "ranges": [
                                {
                                    "min_len": 0,
                                    "max_len": 32
                                },
                                {
                                    "min_len": 1,
                                    "max_len": 32
                                }
                            ]
                        }
                    }
                }
            }
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.