API Stability Preview

The listNotifications() GraphQL query returns a list of all of the notifications currently set in the system. It requires root access.

For more information on actions, previously known as notifiers, see the Actions documentation page.

Syntax

Below is the syntax for the listNotifications() query field:

graphql
listNotifications: [Notification!]!

There aren't any values to give for this query field. There are a few parameters to enter for the return values. They're listed in the Returned Datatype section. Below is an example using this query field:

Show:
graphql
query {
  listNotifications 
  {id, title, severity, message}
}

Returned Datatypes

The returned datatype Notification has a few parameters. Below is a list of them:

Table: Notification

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 26, 2024
dismissablebooleanyes Long-TermWhether the notification is dismissable.
idstringyes Long-TermThe unique identifier for the notification.
linkstring  Long-TermLink accompanying the notification.
linkDescriptionstringyes Long-TermA description for the link.
messagestringyes Long-TermThe message for the notification.
severityNotificationSeverityyes Long-TermThe severity of the notification. See NotificationSeverity.
titlestringyes Long-TermThe title or heading of the notification.
typeNotificationTypesyes Long-TermThe type of the notification. See NotificationTypes.