getDeviceCameraStatus - Device Enable Switch Status - Imou Open Platform
getDeviceCameraStatus: Get device enable switch status
Function details
Get the status of the device enable switch.
Note: Only devices with accessType=PaaS in the device details are supported
Request address
https://openapi-[DataCenter].easy4ip.com/openapi/getDeviceCameraStatus
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 | If the enableType is device-level enable, there is no need to pass the channel number, and the channel-level enable needs to pass the channel number | channel number | |
| enableType | String | Yes | Please refer to "Device Capability Switch Description" for details, the first letter is lowercase | Device enable type |
Sample input
{
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"89624489b8ede5f40103923c9c244ab8",
"time":1603354153,
"nonce":"d40fc5c4-a3db-42b8-9fe0-a81983701b8c"
},
"id":"d8f62142-3754-4b9c-a828-233c7a13bc4e",
"params":{
"enableType":"closeCamera",
"deviceId":"TESTQWERXXXX",
"channelId":"0",
"token":"At_00000ad9e6e87f0142eb92e207aec46a"
}
}
Return data field description
| Field name | Field type | Field description | |
|---|---|---|---|
| status | String | Enable switch, on: on, off: off | |
| enableType | String | The type of device enablement, for example: closeCamera: privacy mask; smartTrack: smart tracking; smartLocate: listening sound displacement | |
Sample output
{
"result":{
"msg":"The operation was successful.",
"code":"0",
"data":{
"enableType":"closeCamera",
"status": "on"
}
},
"id":"d8f62142-3754-4b9c-a828-233c7a13bc4e"
}
