Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Get All Device Snapshots in Service Now

 

Junos Space Service Now periodically collects and displays device snapshots or iJMBs that contain information about devices. These iJMBs are processed and displayed on the Device Snapshot page in the Service Now application.

Use this API to view all iJMBs present in Service Now.

URI

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

Consumes

None.

Produces

  • application/vnd.juniper.servicenow.devicesnapshot-management.devicesnapshots +xml;version=1

  • application/vnd.juniper.servicenow.devicesnapshot-management.devicesnapshots +json;version=1

Response Elements

Element

Type

Description

uri

String

URI of the device snapshot collection

size

Integer

Number of records in the device snapshot collection

deviceshanpshot

deviceshanpshot

A device snapshot

key

Integer

ID of the device snapshot

uri

String

URI of the device snapshot

href

String

Link to the device snapshot

hostName

String

Device hostname

product

String

Product type, such as SRX1400

status

String

Status of the uploading iJMB to Juniper Support System (JSS) or Service Now partner (if operating in Partner Proxy mode

Possible values:

  • Uploaded—The iJMB is uploaded

  • In Progress—The iJMB is in the process of being uploaded

  • Not Submitted—The iJMB is not yet uploaded

  • Skipped—Upload of iJMB to JSS or Service Now partner is skipped

  • Failed—The iJMB failed to be uploaded

Sample Output

Sample XML Output

Sample JSON Output

Additional Notes

To get the device snapshot for specific device, you can use the filter parameter. For example, the following URI retrieves the device snapshot for the SN-SRX1400test device.

https://[host]/api/juniper/servicenow/devicesnapshot-management/ devicesnapshots?filter=(hostName eq ' SN-SRX1400test') (HTTP method = GET)

Response Status Code

Message

Description

204 No Content

Device snapshots does not exist in Service Now