Get Device Alarm Plan - Imou Open Platform
deviceAlarmPlan: Get device alarm plan
Function details
Obtain the equipment alarm plan.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/deviceAlarmPlan
The 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 | Channel ID |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"6ccddbf82890273486b1d174fd580db0",
"time":1603355564,
"nonce":"799af85b-56d7-47df-b010-f9ff898048f1"
},
"id":"6a60a796-f5f9-44c3-aeef-67cd051df684",
"params":{
"deviceId":"TESTQWERXXXX",
"channelId":"0",
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
| Field name | Field type | Field description | ||
|---|---|---|---|---|
| channelId | String | Channel number | ||
| rules | enable | Boolean | Whether the motion inspection plan is effective, true: effective, false: not effective | |
| beginTime | String | Start time, the time format is HH:mm:ss | ||
| endTime | String | End time, the time format is HH:mm:ss | ||
| period | String | Repeat cycle: Monday: every Monday, Tuesday: every Tuesday, Wednesday: every Wednesday, Thursday: every Thursday, Friday: every Friday, Saturday: every Saturday, Sunday: every Sunday | ||
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"rules":[
{
"period":"Monday",
"enable":true,
"beginTime":"00:00:00",
"endTime":"01:00:00"
}
],
"channelId":"0"
}
},
"id":"6a60a796-f5f9-44c3-aeef-67cd051df684"
}
