Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Copy a Service Insight Notification

    Use this API to copy a Service Insight notification.

    URI

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

    URI Parameters

    Parameter

    Type

    Required

    Description

    id

    Integer

    Yes

    ID of the Service Insight notification to be copied

    Consumes

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

    Request Elements

    Element

    Type

    Description

    notification

    notification

    Service Insight notification to be copied

    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 to which the notification must be sent

    snmpTrap

    snmpTrap

    An SNMP trap

    uri

    String

    URI of the SNMP trap

    href

    String

    Link to the SNMP trap

    filters

    filters

    Filters 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

    Serial number of the device used in the notification

    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

    domainId

    Integer

    ID of the domain to which the notification belongs

    This is an optional element. The value provided in this element is ignored if the value is invalid or a domainId other than the current domainId is provided.

    Produces

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

    Response Elements

    Element

    Type

    Description

    msg

    String

    Status message of the copy notification job

    Sample Input

    Sample XML Input

    <notification>
    <filter>
    <organization uri="/api/juniper/serviceinsight/organization-management/organization/11789"/>
    <deviceGroup uri="/api/juniper/serviceinsight/device-group-management/deviceGroup/1234"/>
    <deviceName>xyz</deviceName>
    <serialNumber>12133</serialNumber>
    </filter>
    <snmpTraps>
    <snmpTrap uri="="/api/juniper/servicenow/global-setting-management/snmp-configuration- management/snmpConfiguration/98304"/>
    </snmpTraps>
    <emails>
    <email>abc@test.com</email>
    </emails>
    </notification>

    Sample JSON Input

    {
      "notification": {
        "filter": {
          "organization": { "@uri": "/api/juniper/serviceinsight/organization-management/organization/11789" },
          "deviceGroup": { "@uri": "/api/juniper/serviceinsight/device-group-management/deviceGroup/1234" }
        },
        "snmpTraps": {
          "snmpTrap": {{“@uri”:”="/api/juniper/servicenow/global-setting-management/snmp-configuration- management/snmpConfiguration/98304” }
        },
        "emails": { "email": "abc@test.com" }
      }
    }
    
    

    Sample Output

    Sample XML Output

    <serviceinsightmsg>
    	<msg>
    		successfully created notification with name as =CopyOftest-pbn
    	</msg>
    </serviceinsightmsg>
    

    Sample JSON Output

    {
      "serviceinsightmsg": {
        "msg": "successfully created notification with name as =CopyOftest-pbn"
      }
    }
    

    Modified: 2016-08-11