Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Get Information About a Script Bundle

 

Use this API to retrieve information, including events, about a script bundle.

URI

https://[host]/api/juniper/servicenow/scriptbundle-management/scriptbundles /{id} (HTTP method = GET)

URI Parameters

Parameter

Type

Required

Description

id

Integer

Yes

ID of the script bundle for which information is to be retrieved

Consumes

None

Produces

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

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

Response

Element

Type

Description

name

String

Name of script bundle

receiveTime

String

Date and time AI-Script was installed

version

String

AI-Script package version

isDefault

Boolean

Flag to indicate whether or not the script bundle is the default script bundle in Service Now

Possible values:

  • true—The script bundle is the default script bundle

  • false—The script bundle is not the default script bundle

bundleEvents

bundleEvents

Collection of events in the script bundle

uri

String

Link to the events in the script bundle

event

event

An event in the script bundle

eventID

Integer

ID of the AI-Script event

category

String

AI-Script event category

type

String

Type of event that triggers the script. Types include:

  • Software failure

  • Hardware failure

  • Resource exhaustion

subType

String

Detailed description for the type of event that triggers the script

For example, file system error, communication error, socket failure, excessive memory utilization, database failure, session error, memory allocation error, initialization error, process error, and so on.

priority

String

Priority level of the event script. Values are:

  • Critical

  • High

  • Medium

  • Low

briefDescription

String

Terse description of the event

eventDescription

String

Detailed description of the event

Sample Output

Sample XML Output

Sample JSON Output

Response Status Code

Message

Description

404 Not Found

Invalid script bundle ID