Get

Function

This API is used to get parameter for Remote Setting > System > IP Camera Maintain > Upgrade page.

Request Message

None.

Sample:

POST /API/IPCMaintaint/IPCUpgrade/Get HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel_infoobjectTotal channel information object, see Table 2 for details.
Table 2
ParameterRangeTypeDescription
CH1objectA channel information object, see Table 3 for details.
...object
IP_CH1object
...object
WIFI_CH1object
...object
Table 3
ParameterRangeTypeDescription
ip_addressMax length:63stringIP address/domain name.
state"Off-line","On-line"stringIPC status.
software_versionMax length: 40stringFirmware version.
file_typeMax length: 64stringUpgrade file extension.
reasonstringThe reason why IPC cannot obtain information.

Tips:

The response message of the Get 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": {
        "channel_info": {
            "CH1": {
                "reason": "Not support"
            },
            "CH2": {
                "reason": "Not support"
            },
            "CH3": {
                "reason": "Not support"
            },
            "CH4": {
                "reason": "Not support"
            },
            "CH5": {
                "reason": "Not support"
            },
            "CH6": {
                "reason": "Not support"
            },
            "CH7": {
                "reason": "Not support"
            },
            "CH8": {
                "reason": "Not support"
            },
            "CH9": {
                "reason": "Not support"
            },
            "CH10": {
                "reason": "Not support"
            },
            "CH11": {
                "reason": "Not support"
            },
            "CH12": {
                "reason": "Not support"
            },
            "CH13": {
                "reason": "Not support"
            },
            "CH14": {
                "reason": "Not support"
            },
            "CH15": {
                "state": "On-line",
                "ip_address": "172.16.11.122",
                "software_version": "V26.34.8.2.4_230706",
                "file_type": "sw"
            },
            "CH16": {
                "state": "On-line",
                "ip_address": "172.16.11.162",
                "software_version": "V45.85.8.2.3_230620",
                "file_type": "sw"
            }
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.