Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Uninstall Script Bundle from a Device

 

Use this API to uninstall a Script Bundle from a device running Junos OS and managed by Service Now. The Retrieve Job Details API https://{host-id} api/space/job-management/jobs/{jobs-id} outputs the URI for this API.

URI

https://{host-id}/api/juniper/servicenow/event-profile-management/eventProfiles/ job-instances/{job-id}/event-profiles-install-job-results (HTTP method = GET)

URI Parameters

Parameter

Type

Required

Description

job-id

Integer

Yes

ID of the uninstall script bundle job

Consumes

None

Produces

None

Response Elements

Element

Type

Description

uri

String

Link to the collection of uninstall script bundle job result

total

Integer

Number of records in the collection

jobResult

jobResult

An uninstall script bundle job result

ID

Integer

ID of the script bundle in the Service Now database

profileId

Integer

ID of the event profile associated with the script bundle

bundleId

Integer

ID of the script bundle in Junos Space Network Management Platform

jobType

String

Type of job; the value is always uninstall in this operation

serviceNowDeviceID

Integer

ID of the device in the Service Now database.

spaceDeviceID

Integer

ID of the device in Junos Space Platform.

jobStatus

Enum

Status of the script bundle uninstallation job

Possible values are:

  • Success—The script bundle is successfully uninstalled from the device.

  • Failed—Uninstallation of the script bundle failed on the device.

  • Scheduled—The script bundle is scheduled to be uninstalled from the device.

jobRemarks

String

Remarks about the uninstallation job

jobSteps

jobSteps

Provides details about the steps performed for uninstalling the script bundle from the device and the results of each step

The steps are:

  • Connecting to the device

  • Deleting configuration

  • Uninstalling event profile

  • Deleting .slax files from the device

id

Integer

ID of the job step

stepName

String

Name of the step

jobStatus

String

Status of the step in the uninstallation job

detailedJobRemarks

String

Remarks about the step

Sample Output

Sample XML Output

Sample JSON Output

Error Codes

Message

Description

200 OK

The script bundle was successfully uninstalled from the device.