GET api/Alarm/UnitAlarms?serialNumber={serialNumber}
Get list of alarm subscriptions on a unit.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
serialNumber |
unit serialnumber |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Get list of alarm subscriptions on a unit.
Collection of AlarmNotificationModelName | Description | Type | Additional information |
---|---|---|---|
AlarmId | integer32 |
None. |
|
AlarmName | string |
None. |
|
Description | string |
None. |
|
Enabled | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "AlarmId": 1, "AlarmName": "sample string 2", "Description": "sample string 3", "Enabled": true }, { "AlarmId": 1, "AlarmName": "sample string 2", "Description": "sample string 3", "Enabled": true } ]
application/xml, text/xml
Sample:
<ArrayOfAlarmNotificationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Alarm"> <AlarmNotificationModel> <AlarmId>1</AlarmId> <AlarmName>sample string 2</AlarmName> <Description>sample string 3</Description> <Enabled>true</Enabled> </AlarmNotificationModel> <AlarmNotificationModel> <AlarmId>1</AlarmId> <AlarmName>sample string 2</AlarmName> <Description>sample string 3</Description> <Enabled>true</Enabled> </AlarmNotificationModel> </ArrayOfAlarmNotificationModel>