queryLocalRecordPlan: Query the local recording plan of the device
queryLocalRecordPlan: Query the local recording plan of the device
Function details
Query the currently configured recording plan of the device
Remarks:
The device needs to have the LocalRecord capability set to support the device's local recording query
If the recording plan is not set by default, the device will only store the recording data associated with the device alarm event
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/queryLocalRecordPlan
Minimum permissions required for sub-account token request
"Permission":"Config" "Resource":"cam:serial number:channel number"
Incoming parameter description
| Parameter name | Parameter type | Required or not | Default value | Legal value | Parameter description |
|---|---|---|---|---|---|
| token | String | Yes | Administrator or sub-account accessToken | ||
| deviceId | String | Yes | Device serial number | ||
| channelId | String | Yes | Device channel number |
Sample input
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_00006acr3456d12312d3grf60147de7ec",
"deviceId":"TESTQWERXXXX",
"channelId":"0"
}
}
Return data field description
| Field name | Field type | Field description | |
|---|---|---|---|
| channelId | Integer | Device channel number | |
| rules | beginTime | String | Start time, HH:mm:ss format |
| endTime | String | End time, HH:mm:ss format | |
| period | String | Recording period, can be "Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday" | |
Sample output
{
"result":{
"msg":"Successful operation。",
"code":"0",
"data": {
"channelId": 0,
"rules": [
{
"beginTime": "10:33:25",
"endTime": "11:55:33",
"period": "Monday"
}
]
}
},
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af"
}
