Range
Function
This API is used to NVR get IPC parameter range.
Request Message
None.
Sample:
POST /API/IPCMaintaint/IPCReboot/Range HTTP/1.1
{
"version":"1.0",
"data":
{
}
}
Response Message
Parameter Description
Table 1
Parameter | Range | Type | Description |
---|---|---|---|
channel_max | int | The maximum number of accessable channels. | |
password | len:0-16 | string | IPC authentication password. |
channel_info | object | Total channel information object, see Maintenance > IPCMaintenance > Load Default > Range > Parameter Description > Table 2 Get details. | |
channels_items_datasame | object array | An array of objects whose parameters need to be synchronized (cloud-only). For details about the object contents, see Table 3 . |
Table 3
Parameter | Range | Type | Description |
---|---|---|---|
datasame_channels | 0-Maximum number of channels | string array | Channel group that needs to synchronize parameters (cloud only) |
datasame_items | 0-Maximum number of channels | string array | Parameter fields that need to be synchronized (cloud only) |
Sample:
HTTP/1.1 200 OK
Content-Type: application/json
{
"result": "success",
"data": {
"channel_max": 16,
"password": {
"type": "string",
"min_len": 0,
"max_len": 16
},
"channels_items_datasame": {
"type": "array",
"min_size": 0,
"max_size": 8,
"items": [
{
"datasame_items": {
"type": "array",
"min_size": 0,
"max_size": 8,
"items": {
"type": "string",
"items": ["channel_select"]
}
},
"datasame_channels": {
"type": "array",
"min_size": 0,
"max_size": 8,
"items": {
"type": "string",
"items": [
"CH1",
"CH2",
"CH3",
"CH4"
]
}
}
},
{
"datasame_items": {
"type": "array",
"min_size": 0,
"max_size": 8,
"items": {
"type": "string",
"items": ["channel_select"]
}
},
"datasame_channels": {
"type": "array",
"min_size": 0,
"max_size": 8,
"items": {
"type": "string",
"items": ["CH5"]
}
}
},
"channel_info": {
"type": "object",
"items": {
"CH14": {
"type": "object",
"items": {
"status": {
"type": "string",
"items": [
"Offline",
"Online"
]
},
"ip_address": {
"type": "string",
"min_len": 0,
"max_len": 63
},
"software_version": {
"type": "string",
"min_len": 0,
"max_len": 40
},
"reboot_switch": {
"type": "bool"
}
}
},
"CH16": {
"type": "object",
"items": {
"status": {
"type": "string",
"items": [
"Offline",
"Online"
]
},
"ip_address": {
"type": "string",
"min_len": 0,
"max_len": 63
},
"software_version": {
"type": "string",
"min_len": 0,
"max_len": 40
},
"reboot_switch": {
"type": "bool"
}
}
}
}
}
}
}
Error Code
See Response Messages Body and Common error_code for more information.