Obtaining the Alarm Information
Function
This API is used to obtain the alarm list of devices in a project.
Calling Method
For details, see Calling APIs.
URI
GET /v1/{project_id}/devices/alarms
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
limit |
No |
Integer |
Number of records on each page. |
|
offset |
No |
Integer |
Pagination offset. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
alarm_infos |
Array of AlarmInfo objects |
array |
|
total |
Integer |
Total number of alarms. |
|
Parameter |
Type |
Description |
|---|---|---|
|
count |
Integer |
integer |
|
create_time |
Long |
Creation time. |
|
description |
String |
Description. |
|
device_ip |
String |
Device IP address. |
|
id |
Long |
Alarm ID. |
|
module |
String |
Alarm module. |
|
name |
String |
Alarm name. |
|
severity |
Integer |
Severity. The value can be 1 (critical), 2 (major), 3 (minor), 4 (warning), 5 (indeterminate), or 6 (cleared). |
|
status |
String |
Alarm status. |
|
type |
Integer |
Device type. |
Example Requests
None
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Query result. |
|
401 |
Unauthorized. The user is not logged in or the token is invalid. |
|
403 |
Unauthorized to access the resource. |
|
404 |
The specified project does not exist. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot