Get Information about a PBN Report
Service Insight provides Proactive Bug Notifications (PBNs) as a proactive measure to alert you about known issues that can impact the devices in your network. On the Service Insight GUI, all available PBN reports are listed in the Manage PBN Reports page. Use this API to to retrieve details of a specific PBN report.
URI
https://[host]/api/juniper/serviceinsight/pbnreport-management /pbnreports/{id} (HTTP method = GET)
URI Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | ID of the PBN report to be retrieved |
Consumes
None
Produces
- application/vnd.juniper.serviceinsight.pbnreport-management.pbnreport+xml;version=2
- application/vnd.juniper.serviceinsight.pbnreport-management.pbnreport+json;version=2
Response
Element | Type | Description |
---|---|---|
uri | String | URI of the PBN report |
reportCreator | String | User who the created the PBN report |
deviceList | String | Comma-separated list of devices to which this PBN report applies |
mailStatus | String | When creating PBN reports, you can specify a set of email addresses to be notified when this PBN report is generated or updated The mailstatus element displays whether or not an email has been sent. |
id | Integer | Unique identifier of the PBN report. The ID is auto-generated by Service Now. |
reportName | String | User-defined name for this PBN report |
domainId | Integer | ID of the domain to which the PBN report belongs |
Sample Output
Sample XML Output
<pbnreport uri="/api/juniper/serviceinsight/pbnreport-management/pbnreports/32800"> <method href= "/api/juniper/serviceinsight/pbnreport-management/pbnreports/32800/regenerateReport" /> <id>32800</id> <domainId>2</domainId> <report-name>test-pbn</report-name> <report-creator>super</report-creator> <report-created-date>2016-08-02 10:39:23 UTC</report-created-date> <report-last-executed-date>2016-08-02 10:39:23 UTC</report-last-executed-date> <email-list> <email>deeptij@juniper.net</email> </email-list> <mail-status>Email successfully sent</mail-status> <pbn-issue-start-date>2000-01-01 00:00:00 UTC</pbn-issue-start-date> <pbn-issue-end-date>2016-08-02 10:39:21 UTC</pbn-issue-end-date> <devices-count>2</devices-count> <devices-with-pbn-count>1</devices-with-pbn-count> <devices> <device>sn-space-mx240-sys</device> <device>srx-650-sn</device> </devices> </pbnreport>
Sample JSON Output
{ "pbnreport": { "@uri": "/api/juniper/serviceinsight/pbnreport-management/pbnreports/32800", "method": { "@href": "/api/juniper/serviceinsight/pbnreport-management/pbnreports/32800/regenerateReport" }, "id": 32800, "domainId": 2, "report-name": "test-pbn", "report-creator": "super", "report-created-date": "2016-08-02 10:39:23 UTC", "report-last-executed-date": "2016-08-02 10:39:23 UTC", "email-list": { "email": "deeptij@juniper.net" }, "mail-status": "Email successfully sent", "pbn-issue-start-date": "2000-01-01 00:00:00 UTC", "pbn-issue-end-date": "2016-08-02 10:39:21 UTC", "devices-count": 2, "devices-with-pbn-count": 1, "devices": { "device": [ "sn-space-mx240-sys", "srx-650-sn" ] } } }
Response Status Code
Message | Description |
---|---|
204 No Content | No reports with this ID were found |