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 a JMB with Error Information by JMB ID

    Use this API to retrieve details of a specific JMB with errors.

    URI

    https://[host]/api/juniper/servicenow/jmb-error-management/jmbs/{id} (HTTP method = GET)

    URI Parameters

    Parameter

    Type

    Required

    Description

    id

    Integer

    Yes

    ID of the JMB with errors

    Consumes

    None

    Produces

    • application/vnd.juniper.servicenow.servicenow-jmb-error-management.jmberror+xml; version=1
    • application/vnd.juniper.servicenow.servicenow-jmb-error-management.jmberror+json; version=1

    Response Elements

    Element

    Type

    Description

    uri

    String

    URI of the JMB

    status

    String

    JMB status.

    jmbName

    String

    Name of JMB that contains errors.

    id

    Integer

    Unique identifier of JMB that contains errors.

    jmbErrorMessage

    String

    Brief description of the error.

    deviceId

    String

    ID of the device from which the erroneous JMB was collected

    Sample Output

    Sample XML Output

    <jmbError uri="/api/juniper/servicenow/jmb-error-management/jmbs/360449">
            <filterLevel>4</filterLevel>
            <status>invalid</status>
            <jmbName>_ais_intel_20120220_103329.xml</jmbName>
            <jmbErrorMessage>JMB validation failed - cvc-complex-type.2.4.a: Invalid content was found starting with element 'host-event-ID'. 
    One of '{&quot;http://xml.juniper.net/xnm/1.1/xnm&quot;:jmb-xsd-version}' is expected.</jmbErrorMessage> <id>360449</id> <deviceId>99511</deviceId> </jmbError>

    Sample JSON Output

    {"jmbError":
            {"@uri":"/api/juniper/servicenow/jmb-error-management/jmbs/197401",
                    "filterLevel":1,
                    "status":"invalid",
                    "jmbName":"SN-SRX1400test_ais_intel_20120329_111913.xml",
                    "jmbErrorMessage":"JMB validation failed - cvc-complex-type.2.4.a: Invalid content was found starting with element 'host-event-ID'. 
    One of '{"http://xml.juniper.net/xnm/1.1/xnm":jmb-xsd-version}' is expected.", "id":197401, "deviceId":196610 } }

    Response Status Code

    Message

    Description

    404 Not Found

    No JMBs with errors found with that ID number.

    Modified: 2016-08-11