Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Edit Filters and Actions of a Service Insight Notification

 

Use this API to edit the filters and actions of a Junos Space Service Insight notification.

URI

https://[host]//api/juniper/serviceinsight/notification-management/notifications/{id}/ editFilterAndAction (HTTP method = PUT)

URI Parameters

Parameter

Type

Required

Description

id

Integer

Yes

ID of the notification for which filters and actions are to be edited

Consumes

  • application/vnd.juniper.serviceinsight.notification-management.editFiltersAndActions +xml;version=1

  • application/vnd.juniper.serviceinsight.notification-management.editFiltersAndActions +json;version=1

Request Elements

Element

Type

Description

notification

notification

Service Insight notification for which filters and actions must be edited

emails

email

Collection of e-mail IDs to which the notification must be flagged

email

String

E-mail ID to which the notification must be flagged

snmpTraps

snmpTraps

Collection of SNMP traps for sending the notification

snmpTrap

snmpTrap

An SNMP trap

uri

String

URI of the SNMP trap

href

String

Link to the SNMP trap

filters

filters

Filter used by Service Insight to send the notification

organization

String

Organization used in the filter

deviceGroup

String

Device group used in the filter

deviceName

String

Device name used in the filter

serialNumber

String

Serial number of the device used in the filter

hasTheWords

String

String used in the filter

An object is filtered and a notification sent when the object contains the words in this element

doesnotHaveTheWords

String

Strings used in the filter

An object is filtered when the object does not contain the words in this element

tag

String

Tag used in the filter

Produces

  • application/vnd.juniper.serviceinsight.notification-management.editFiltersAndActions +xml;version=1

  • application/vnd.juniper.serviceinsight.notification-management.editFiltersAndActions +json;version=1

Response Elements

Element

Type

Description

msg

String

Status message of the edit filters and actions job

Sample Input

Sample XML Input

Sample JSON Input

Sample Output

Sample XML Output

Sample JSON Output