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

    Get All Notifications in Service Now

    Use this API to retrieve all notifications present in Junos Space Service Now.

    URI

    https://[host]/api/juniper/servicenow/notification-management/notifications (HTTP method = GET)

    Consumes

    None

    Produces

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

    Response Elements

    Element

    Type

    Description

    notifications

    notifications

    URI of Service Now notification collection

    size

    Integer

    Number of notifications in the collection

    notification

    notification

    A Service Now notification

    href

    String

    URI of the notification

    uri

    String

    Link to the notification

    key

    Integer

    ID of the notification

    name

    String

    Name of the notification

    owner

    String

    User assigned to the notification for ownership

    status

    String

    Status of the notification

    Possible Values

    • Enabled—An e-mail or SNMP trap is sent to users if the trigger occurs in Service Now
    • Disabled—An e-mail or SNMP trap is not sent to users if the trigger occurs in Service Now

    trigger

    String

    Trigger to send e-mail or SNMP traps to users

    Possible values:

    • New Incident Detected
    • New Intelligence Update
    • Event Report To Juniper
    • Case ID Assigned
    • Case Status Updated
    • Service Contract Expiring
    • Ship-To Address Missing ofr Device
    • Switch To JDC Mode
    • Connected Member Action On Device
    • BIOS Case Updates
    • Partner Certificate Expiry
    • New Exposure

    domain

    String

    Domain to which the notification is assigned

    domainId

    Integer

    ID of domain to which the notification is assigned

    Sample Output

    Sample XML Output

    <notifications size="51" uri="/api/juniper/servicenow/notification-management/notifications">
    <notification href= "/api/juniper/servicenow/notification-management/notifications/786433" uri="/api/juniper/servicenow/notification-management/notifications/786433" key="786433">
    <name>testHW</name>
    <owner>super</owner>
    <status>Enabled</status>
    <trigger>New Intelligence Update</trigger>
    <domain>Global</domain>
    <domainId>10</domainId>
    </notification>
    <notification href= "/api/juniper/servicenow/notification-management/notifications/884736" uri="/api/juniper/servicenow/notification-management/notifications/884736" key="884736">
    <name>n1</name>
    <owner>super</owner>
    <status>Enabled</status>
    <trigger>New Incident Detected</trigger>
    <domain>Global</domain>
    <domainId>15</domainId>
    </notification>
    </notifications>
    

    Sample JSON Output

    {
      "notifications": {
        "size": "51",
        "@uri": "/api/juniper/servicenow/notification-management/notifications",
        "notification": [
          {
            "@href": "/api/juniper/servicenow/notification-management/notifications/786433",
            "@uri": "/api/juniper/servicenow/notification-management/notifications/786433",
            "key": "786433",
            "name": "testHW",
            "owner": "super",
            "status": "Enabled",
            "trigger": "New Intelligence Update",
            "domain": "Global",
            "domainId":"15"
          },
          {
            "@href": "/api/juniper/servicenow/notification-management/notifications/884736",
            "@uri": "/api/juniper/servicenow/notification-management/notifications/884736",
            "key": "884736",
            "name": "n1",
            "owner": "super",
            "status": "Enabled",
            "trigger": "New Incident Detected",
            "domain": "Global",
            "domainId":"10"
          }
        ]
      }
    }
    

    Modified: 2016-08-09