Get Device Cloud Storage Information - Imou Open Platform
getDeviceCloud: Get the cloud storage service information of the current device
Function details
Obtain the cloud storage package policy of the current device. If a device has multiple cloud storage services activated, the earliest activated and unexpired cloud storage policy information will be returned.
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/getDeviceCloud
The minimum permissions required for sub-account token request
"Permission":"RecordReplay" "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
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_12345678901234567890123456789012",
"deviceId":"TESTQWERXXXX",
"channelId":"0"
}
}
Return data field description
| Field name | Field type | Field description |
|---|---|---|
| hasDefault | Boolean | Is there a default package? |
| strategyId | String | Package id |
| name | String | Package name |
| strategyStatus | Integer | Package status, -1: not activated, 0: expired, 1: in use, 2: suspended |
| beginTime | String | Package opening time |
| endTime | String | The end time of the package, this field will not be returned if it is a permanent free cloud storage |
Sample output
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"result":{
"data":{
"hasDefault":true,
"strategyId":1,
"name":"package name",
"strategyStatus":2,
"beginTime":"2017-05-01 00:12:23",
"endTime":"2018-05-01 00:12:23"
},
"code":"0",
"msg":"The operation was successful"
}
}
