Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Get All Event Scripts in a Script Bundle

 

Use this API to retrieve event scripts included in a script bundle loaded on a device. Unlike the Get Information About a Script Bundle API, this API does not return the script bundle itself.

URI

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

URI Parameters

Parameter

Type

Required

Description

ID

Integer

Yes

ID of the script bundle from which event scripts are to be retrieved

Consumes

  • vnd.juniper.servicenow.scriptbundle-management.bundleevents+json;version=1; charset=UTF-8

  • vnd.juniper.servicenow.scriptbundle-management.bundleevents+xml;version=1; charset=UTF-8

Response Elements

Element

Type

Description

uri

String

URI of the script bundle

size

Integer

Number of event scripts in the script bundle

event

event

An event script in the script bundle

ID

Integer

ID of the event script

category

String

Category of the event script

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

A terse description of the event.

eventDescription

String

A detailed description of the event.

Sample Output

Sample XML Output

Sample JSON Output

Response Status Code

Message

Description

500 Internal Server Error

No event is available in the script bundle