Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Get All Script Bundles

 

Use this API to retrieve information about all the script bundles loaded on a device.

URI

http://[host]/api/juniper/servicenow/scriptbundle-management/scriptbundles (HTTP method = GET)

Consumes

None

Produces

  • application/vnd.juniper.servicenow.scriptbundle-management.scriptbundles +xml;version=1

  • application/vnd.juniper.servicenow.scriptbundle-management.scriptbundles +json;version=1

Response Elements

Element

Type

Description

uri

String

Link to the collection of script bundle loaded on a device

size

Integer

Number of records in the collection

scriptBundle

scriptBundle

A script bundle loaded on the device

key

Integer

ID of the script bundle

name

String

Name of the script bundle

receiveTime

String

Date and time the script bundle was created

version

String

Version of the script bundle.

isDefault

Boolean

Flag to specify if the script bundle is the default script bundle

Possible values:

  • true—The script bundle is the default script bundle in Service Now

  • false—The script bundle is not the default script bundle in Service now

Sample Output

Sample XML Output

Sample JSON Output

Response Status Code

Message

Description

204 No Content

No script bundle exists