{"type":"api","title":"Create Notification Rule","meta":{"id":"/apps/pubhub/media/sd-wan-api-20-16/58fb893fa751949ea20a40274e9ab219a20e19fa/e77267b5-7b4b-3f93-807c-c6d1c6b41343","info":{"title":"Cisco Catalyst SD-WAN Manager API","description":"The vManage API exposes the functionality of operations maintaining devices and the overlay network","contact":{"email":"vmanage@cisco.com"},"license":{"name":"Commercial License","url":"https://www.cisco.com/c/en/us/solutions/enterprise-networks/sd-wan/index.html"},"version":"2.0.0"},"openapi":"3.0.1","servers":[{"url":"/dataservice"}]},"spec":{"tags":["Monitoring - Alarms Notification"],"description":"Add notification rule","operationId":"createNotificationRule","requestBody":{"description":"Notification rule","content":{"application/json":{"schema":{"type":"object"},"examples":{"Notification rule":{"description":"Notification rule","value":{"notificationRuleName":"testwebhook","severity":"Medium","alarmName":"BFD_Node_Up","accountDetails":"noreply@cisco.com","webHookEnabled":true,"webhookUsername":"admin","webhookPassword":"admin","webhookUrl":"https://localhost:8444","updatedBy":"admin","devicesAttached":"1712133e-0246-4281-8152-3317b796d2bc","emailThreshold":5,"sourceVpn":512,"vpn":10,"vpnIpSubnet":"192.168.1.0/24","accountDetailsArray":["noreply@cisco.com"]}}}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"type":"object"},"examples":{"Notification rule":{"description":"Notification rule","value":"{\n \"accountDetails\": \"noreply@cisco.com\",\n \"accountDetailsArray\": [\n \"noreply@cisco.com\"\n ]\n \"alarmName\": \"BFD_Node_Up\",\n \"devicesAttached\": \"1712133e-0246-4281-8152-3317b796d2bc\",\n \"emailEnabled\": true,\n \"emailThreshold\": 5,\n \"notificationRuleName\": \"testwebhook\",\n \"severity\": \"Medium\",\n \"updatedBy\": \"admin\",\n \"webHookEnabled\": true,\n \"webhookPassword\": \"admin\",\n \"webhookUrl\": \"https://localhost:8444\",\n \"webhookUsername\": \"admin\",\n \"sourceVpn\":512,\n \"vpn\":10,\n \"vpnIpSubnet\":\"192.168.1.0/24\",\n}"}}}}},"400":{"description":"Bad Request"},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error"}},"x-roles-required":"Settings-write","__originalOperationId":"createNotificationRule","method":"post","path":"/notifications/rule"}}