获取主机状态
GET
https://api2.hik-cloud.com/api/v1/device/isapi/alarmHost/status
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api2.hik-cloud.com/api/v1/device/isapi/alarmHost/status?deviceSerial=12345465' \
--header 'Authorization: Bearer '
响应示例响应示例
{
"code": 200,
"message": "操作成功",
"data": {
"AlarmHostStatus": {
"HostStatus": {
"tamperEvident": true,
"ACConnect": true,
"EzvizNetwork": "wired",
"smokeDetectorPowerSupply": "normal",
"powerSupply": "normal",
"deviceName": "super brain",
"keypadStatus": "normal",
"wiredNetworkStatus": "normal"
},
"ZoneList": [
{
"Zone": {
"id": 1,
"name": "test",
"status": "notRelated",
"reason": "short",
"tamperEvident": true,
"shielded": true,
"bypassed": true,
"armed": true,
"isArming": true,
"alarm": true,
"isMasking": true,
"charge": "normal",
"chargeValue": 1,
"signal": 1,
"temperature": 1,
"alwaysActiveEnabled": true,
"waterDetectorAlarm": "yes",
"smokeDetectedExceed": "yes",
"temperatureExceed": "yes",
"detectorType": "other",
"model": "test",
"subSystemNo": 1,
"linkageSubSystem": [
1,
2,
3
],
"pollingOptionEnable": true,
"stayAway": true,
"zoneType": "Instant",
"InputList": [
{
"enabled": true,
"id": 1,
"mode": "normalOpen",
"inputZoneID": 1
}
],
"isViaRepeater": true,
"repeaterName": "test",
"workMode": "detector",
"associateRelayCfg": [
1,
2,
3
],
"humidity": 20,
"healthStatus": "normal",
"antiMaskingEnabled": true,
"mountingType": "wall",
"MagnetShockCurrentStatus": {
"magnetOpenStatus": true,
"magnetShockStatus": true,
"magnetTiltStatus": true
},
"magnetOpenStatus": true,
"version": "test",
"pirCamConnected": true,
"accessModuleType": "transmitter",
"relatedAccessModuleID": 1,
"address": 254,
"zoneAttrib": "wired",
"deviceNo": 1,
"isSupportAddType": true,
"moduleChannel": 1,
"abnormalOrNot": true,
"abnormalReason": "upgradeFailed"
}
}
],
"IPCZoneList": [
{
"channelID": 1,
"name": "test",
"chanDetectResult": "connect",
"deviceNo": 1,
"linkageSubSystem": [
1,
2,
3
],
"zoneType": "Instant",
"alarm": true
}
],
"SubSysList": [
{
"SubSys": {
"id": 1,
"arming": "stay",
"alarm": true,
"enabled": true,
"name": "test"
}
}
],
"ExDevStatus": {
"OutputModList": [
{
"OutputMod": {
"id": 1,
"seq": "test",
"status": "notRelated",
"tamperEvident": true,
"charge": "normal",
"chargeValue": 80,
"signal": 1,
"model": "DS-PM1-O8-WE",
"temperature": 1,
"isViaRepeater": true,
"repeaterName": "test",
"voltValue": 1,
"currentValue": 1,
"powerLoad": 1,
"energySumVaule": 1,
"relayList": [
{
"id": 1,
"status": "on",
"name": "test",
"subSystem": [
1,
2,
3
],
"scenarioType": [
"alarm"
]
}
],
"voltValueV20": 1,
"deviceNo": 1,
"version": "test",
"abnormalOrNot": true,
"abnormalReason": "upgradeFailed"
}
}
],
"OutputList": [
{
"Output": {
"id": 1,
"name": "test",
"status": "notRelated",
"tamperEvident": true,
"charge": "normal",
"chargeValue": 1,
"linkage": "test",
"signal": 1,
"temperature": 1,
"version": "test",
"accessModuleType": "transmitter",
"relatedAccessModuleID": 1,
"address": 254,
"subSystemList": [
1,
2,
3
],
"scenarioType": [
"alarm"
],
"relayAttrib": "wired",
"deviceNo": 1
}
}
],
"SirenList": [
{
"Siren": {
"id": 1,
"seq": "test",
"name": "test",
"status": "notRelated",
"tamperEvident": true,
"sirenAttrib": "wired",
"charge": "normal",
"chargeValue": 1,
"signal": 1,
"model": "DS-PS1-I-WE",
"temperature": 1,
"subSystemList": [
1,
2,
3
],
"sirenColor": "test",
"isViaRepeater": true,
"repeaterName": "test",
"version": "test",
"accessModuleType": "localSiren",
"relatedAccessModuleID": 1,
"address": 254,
"deviceNo": 1,
"mainPowerSupply": true,
"intercomServiceEnabled": true,
"abnormalOrNot": true,
"abnormalReason": "upgradeFailed"
}
}
],
"RepeaterList": [
{
"Repeater": {
"id": 1,
"seq": "test",
"name": "test",
"status": "notRelated",
"tamperEvident": true,
"charge": "normal",
"chargeValue": 1,
"signal": 1,
"model": "DS-PR1-WE",
"temperature": 1,
"connDevNum": 1,
"mainPowerSupply": true,
"batteryStatus": "normal",
"version": "test",
"deviceNo": 1,
"abnormalOrNot": true,
"abnormalReason": "upgradeFailed"
}
}
],
"alarmLampList": [
{
"AlarmLamp": {
"id": 1,
"seq": "test",
"name": "test",
"status": "notRelated"
}
}
],
"electricLockList": [
{
"ElectricLock": {
"id": 1,
"name": "test",
"status": "notRelated"
}
}
],
"CardReaderList": [
{
"CardReader": {
"id": 1,
"seq": "test",
"name": "test",
"status": "notRelated",
"tamperEvident": true,
"charge": "normal",
"chargeValue": 1,
"signal": 0,
"model": "DS-PT1-WE",
"temperature": 1,
"subSystemList": [
1,
2,
3
],
"isViaRepeater": true,
"repeaterName": "test",
"version": "test",
"deviceNo": 1,
"abnormalOrNot": true,
"abnormalReason": "upgradeFailed"
}
}
],
"KeypadList": [
{
"Keypad": {
"id": 1,
"seq": "test",
"name": "test",
"status": "notRelated",
"tamperEvident": true,
"keypadAttrib": "wired",
"charge": "normal",
"chargeValue": 1,
"signal": 0,
"address": 1,
"model": "DS-PK1-E-WE",
"temperature": 1,
"subSystemList": [
1,
2,
3
],
"isViaRepeater": true,
"repeaterName": "test",
"version": "test",
"ZoneList": [
{
"zoneID": 1,
"detectorType": "other",
"isBypassed": true,
"subSystemList": [
1,
2,
3
],
"zoneType": "Instant",
"tamperEvident": true,
"enterDelay": 1,
"exitDelay": 5,
"alarm": true
}
],
"OutputList": [
{
"outputID": 1,
"subSystemList": [
1,
2,
3
]
}
],
"isSupportAddType": true,
"deviceNo": 1,
"abnormalOrNot": true,
"abnormalReason": "upgradeFailed"
}
}
],
"RemoteList": [
{
"Remote": {
"id": 1,
"seq": "test",
"name": "test",
"status": "notRelated",
"charge": "normal",
"chargeValue": 1,
"model": "test",
"isViaRepeater": true,
"repeaterName": "test",
"SelKeyList": [
{
"SelKey": {
"key": 1,
"func": "test",
"outputNo": 1
}
}
],
"CombKeyList": [
{
"CombKey": {
"keys": "test",
"func": "test",
"outputNo": 1
}
}
],
"relatedNetUserName": "test",
"userNickName": "test",
"version": "test",
"deviceNo": 1,
"abnormalOrNot": true,
"abnormalReason": "upgradeFailed"
}
}
],
"TransmitterList": [
{
"Transmitter": {
"id": 1,
"name": "test",
"subSystemList": [
1,
2,
3
],
"ZoneList": [
{
"zoneID": 1,
"detectorType": "other",
"isBypassed": true,
"subSystemList": [
1,
2,
3
],
"zoneType": "Instant",
"tamperEvident": true,
"enterDelay": 1,
"exitDelay": 5,
"alarm": true,
"magnetOpenStatus": true,
"status": "notRelated"
}
],
"OutputList": [
{
"outputID": 1,
"outputName": "test",
"subSystemList": [
1,
2,
3
],
"status": "on"
}
],
"seq": "test",
"status": "online",
"tamperEvident": true,
"charge": "normal",
"chargeValue": 1,
"signal": 1,
"model": "test",
"temperature": 1,
"isViaRepeater": true,
"repeaterName": "test",
"movedAlarmEnabled": true,
"tamperPortEnabled": true,
"voltageOutput": "open",
"portCfg": "antiMasking",
"version": "test",
"smokeDetectorAlarm": "alarm",
"smokeDetectorPowerSupply": "normal",
"powerSupply": "normal",
"mainPowerSupply": true,
"type": "transmitter",
"deviceNo": 1,
"batteryStatus": "normal",
"abnormalOrNot": true,
"abnormalReason": "upgradeFailed"
}
}
]
},
"ExtensionList": [
{
"ExtensionModule": {
"id": 1,
"name": "test",
"address": 1,
"linkageAddress": 1,
"type": "wiredZone",
"detailType": "eightWiredZone",
"status": "online",
"tamperEvident": true,
"moduleAttrib": "wired",
"charge": "normal",
"chargeValue": 1,
"temperature": 1,
"deviceNo": 1,
"model": "test",
"ZoneList": [
{
"zoneID": 1,
"detectorType": "other",
"isBypassed": true,
"subSystemList": [
1,
2,
3
],
"zoneType": "Instant",
"tamperEvident": true,
"enterDelay": 1,
"exitDelay": 5,
"alarm": true,
"magnetOpenStatus": true,
"status": "notRelated"
}
],
"OutputList": [
{
"outputID": 1,
"outputName": "test",
"subSystemList": [
1,
2,
3
],
"status": "on"
}
],
"smokeDetectorAlarm": "alarm",
"subSystemList": [
1,
2,
3
]
}
}
],
"BatteryList": [
{
"Battery": {
"id": 1,
"status": "normal",
"percent": 20,
"voltage": 20
}
}
],
"CommuniStatus": {
"connectedSIM": "SIM1",
"wired": "normal",
"wifi": "normal",
"wifiSignal": 1,
"mobile": "normal",
"mobileSignal": 1,
"flow": 1,
"monFlowLimit": 100,
"cloud": "normal",
"averageNoise": 1,
"ARCList": [
{
"id": 1,
"status": "normal"
}
],
"wired2": "normal",
"wifiName": "test",
"SIMNum": "test",
"SIMOperatorName": "test",
"R3AverageNoise": 1,
"RXAverageNoise": 2
}
}
}
}
请求参数
Query 参数
deviceSerial
string
设备序列号
示例值:
12345465
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
返回响应
修改于 2022-05-27 06:39:49