Related Documentation
Script Bundle Management REST API Overview
Scripts are configuration and diagnostic automation tools provided by the Junos OS. They help reduce network downtime and configuration complexity, automate common tasks, and decrease the time to problem resolution. You can group multiple scripts into a script bundle to deploy and execute the script bundle on devices running Junos OS. The script bundle APIs let you retrieve a list of events from the script bundle.
The scriptbundle-management resources are available under https://[host]/api/juniper/servicenow.
URI
https://[host]/api/juniper/servicenow/scriptbundle-management (HTTP method = GET)
Produces
- application/vnd.juniper.servicenow.scriptbundle-management +xml;version=1
- application/vnd.juniper.servicenow.scriptbundle-management +json;version=1
Sample Output
Sample XML Output
<servicenow-scriptbundle-management> <collection href="/api/juniper/servicenow/scriptbundle-management/scriptbundles" rel="scriptbundle-management/scriptbundles"/> </servicenow-scriptbundle-management>
Sample JSON Output
{ "Servicenow-scriptbundle-management":{ "collection":[ "@href":"/api/juniper/servicenow/scriptbundle-management/scriptbundles" rel="scriptbundle-management/scriptbundles"] } }
The script bundle management service provides the following APIs:
- Get All Script Bundles
- Get Information About a Script Bundle
- Get All Event Scripts in a Script Bundle
- Add a Script Bundle to Service Now
- Set a Script Bundle as the Default Script Bundle
- Install Script Bundle on a Device
- Uninstall Script Bundle from a Device
- Delete a Script Bundle