v1

latestOpenAPI 3.0.02026-07-243339471.1 MB
Notification Rules

Create a notification rule

This API is used to create a notification rule.

post/network-notifications/v1/notification-rules

Request body

Example request

{
  "notificationRuleInput": {
    "name": "email-rule",
    "description": "Notification rule for email alerts.",
    "enabled": true,
    "source": {
      "alerts": {
        "enabled": true,
        "alertNames": [
          "AP CPU Utilization"
        ]
      }
    },
    "destination": {
      "email": {
        "enabled": true,
        "emailIds": [
          "admin@domain.com"
        ]
      },
      "webhook": {
        "enabled": true,
        "webhookIds": [
          "4d113fgh-abcd-ef"
        ]
      },
      "syslog": {
        "enabled": true,
        "serverIds": [
          "4d113fgh-abcd-ef"
        ]
      }
    }
  }
}

Response

Notification rule created successfully.

idstring required

Unique identifier of the notification rule.

typestring required

Type identifier for the notification rule.

namestring required

Name of the notification rule.

descriptionstring

Description of the notification rule.

enabledboolean

Indicates whether the notification rule is enabled.

sourceTypesstring[]

List of source types for the notification rule.

Example response

{
  "id": "3f96ffea-73fe-4a9b-b253-ddc58c76fe25",
  "name": "email-rule",
  "description": "Notification rule for email alerts.",
  "enabled": true,
  "source": {
    "alerts": {
      "enabled": true,
      "alertNames": [
        "AP CPU Utilization"
      ]
    }
  },
  "destination": {
    "email": {
      "enabled": true,
      "emailIds": [
        "admin@domain.com"
      ]
    },
    "webhook": {
      "enabled": true,
      "webhookIds": [
        "4d113fgh-abcd-ef"
      ]
    },
    "syslog": {
      "enabled": true,
      "serverIds": [
        "4d113fgh-abcd-ef"
      ]
    }
  }
}