Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Get All Devices in Service Now

 

Use this API to retrieve information about all the devices in Junos Space Service Now.

URI

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

Consumes

None

Produces

  • application/vnd.juniper.servicenow.device-management.devices+xml;version=7

  • application/vnd.juniper.servicenow.device-management.devices+json;version=7

Response Elements

Element

Type

Description

uri

String

URI to the collection of devices in Service Now

size

Integer

Number of records in the collection

device

device

A device in Service Now

uri

String

URI to the device

key

Integer

ID of the device

hostName

String

Hostname of the device

serialNumber

String

Serial number of the device

product

String

Product name of the device

softwareRelease

String

Release number of the software installed on the device

osPlatform

String

Operating system installed on the device

deviceFamily

String

Device family to which the device belongs, such as M Series

shipToAddress

String

Ship-to address of the device; for example, the address of the company to which the replacement part of a router should be shipped.

ipAddr

String

IP address of the device

organizationName

String

Name of the organization with which the device is associated

deviceGroupName

String

Name of the device group with which the device is associated

domain-id

Integer

ID of the Junos Space domain to which the device belongs

domain-name

String

Name of the Junos Space domain to which the device belongs

messages

messages

Error messages generated on the device; for example, error while deleting JMB files from the device after copying the JMB files to Service Now

Sample Output

Sample XML Output

Sample JSON Output

Response Status Code

Message

Description

204 No Content

No devices found