Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Add a Device to Service Now

 

Use this API to add a device from Junos Space Network Management platform to Junos Space Service Now.

URI

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

URI Parameters

None.

Consumes

  • application/vnd.juniper.servicenow.device-management.adddevices+xml;version=1; charset=UTF-8

  • application/vnd.juniper.servicenow.device-management.adddevices+json;version=1; charset=UTF-8

Request Elements

Element

Type

Description

devices

device

Collection of devices to be added to Service Now

device

device

A device to be added to Service Now

href

String

Link to the device

Produces

  • application/vnd.juniper.servicenow.device-management.adddevice.servicenowmsg+xml;version=1

  • application/vnd.juniper.servicenow.device-management.adddevice.servicenowmsg+json;version=1

Response

Element

Type

Description

deviceStatus

deviceStatus

Status message of the add device to Service Now job

desc

String

Status message of the add device job

key

Integer

ID of the device added to Service Now

exceptions

exception

Collection of exceptions that occur during the add device job

exception

exception

An exceptionC

severity

String

Severity of the operation.

Possible values:

  • WARN

  • ERROR

code

String

Service Now-specific error code.

desc

String

Description of the exception

key

Integer

ID of the device for which the eXception was raised

Sample Input

Sample XML Input

Sample JSON Input

Sample Output

Sample XML Output

Sample JSON Output

Response Status Code

Message

Description

500 Internal Server Error

  • Service Now is in Demo mode

  • Specified device ID does not exist

  • Error while adding device to Service Now