查询社区下设备通道列表
GET
https://api2.hik-cloud.com/api/v1/estate/devices/channels/actions/listByCommunityId
返回码 | 返回消息 | 描述 |
---|---|---|
510001 | 参数错误 | 必填项为空、参数长度不符合等参数异常情况 |
511000 | 社区不存在 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api2.hik-cloud.com/api/v1/estate/devices/channels/actions/listByCommunityId' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"communityId": "string",
"pageNo": "string",
"pageSize": "string"
}'
响应示例响应示例
{
"code": 200,
"message": "操作成功",
"data": {
"pageNo": 1,
"pageSize": 10,
"totalPage": 1,
"total": 2,
"hasNextPage": false,
"hasPreviousPage": false,
"firstPage": true,
"lastPage": true,
"rows": [
{
"deviceId": "8c06808799394814880a706761e35800",
"deviceName": "收银台",
"deviceModel": "CS-C3S-52WEFR",
"deviceSerial": "123329561",
"channelId": "d7c5a3a0d78c40309415d6e55417a219",
"channelName": "收银台",
"channelNo": 1,
"channelStatus": 1,
"channelPicUrl": "https://pic.hik-cloud.com/containers/cc_pic/objects/244a8088-6daa-436b-be64-b685f89b5f65",
"deviceStatus": 0
}
]
}
}
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
Body 参数application/json