---
title: "List Alarm Related Events"
method: GET
path: "/v1/alarms/{alarm-id}/events"
tags: ["Alarms"]
---

# List Alarm Related Events

`GET /v1/alarms/{alarm-id}/events`

Retrieve events related to an alarm, limited to the 200 most recent root events. The list is flat and ordered from newest to oldest, with each root event immediately followed by the events correlated to it. Correlation is expressed by the parentId attribute, so the client can rebuild the correlation tree. Requires system-wide "view event log" access in addition to read access to the alarm.

## Path parameters

- `alarm-id` integer, required

## Response `200`

List of related events.

- AlarmEvent[]
  - `id` integer — Event ID
  - `parentId` integer — ID of the event this event is correlated to (0 for a root event)
  - `code` integer — Event code
  - `name` string — Event name
  - `severity` integer — Event severity: 0=Normal, 1=Warning, 2=Minor, 3=Major, 4=Critical
  - `source` integer — Source object ID
  - `sourceName` string — Name of the source object (empty if the object no longer exists)
  - `timestamp` string, date-time — Event timestamp
  - `message` string — Event message

## Other responses

- `401` — Unauthorized
- `403` — User does not have "view event log" system access right, or read access to alarm or alarm's source object
- `404` — Alarm with given ID does not exist

---

[API](https://skmtc.net/netxms/apis/netxms-api.md) · [All operations](https://skmtc.net/netxms/apis/netxms-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netxms/netxms-api/revisions/ee1f54ee3abd/schema)
