Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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

    <scriptbundles uri="/api/juniper/servicenow/scriptbundle-management/scriptbundles/" size="2">
                  <scriptbundle key="295312" uri="/api/juniper/servicenow/scriptbundle-management/scriptbundles/295312">
                  <name>jais-3.2R1.2-signed.tgz</name>
                  <receiveTime>2012-01-19 04:58:04.0</receiveTime>
                  <version>3.2R1.2</version>
                  <isDefault>false</isDefault>
           </scriptbundle>
                  <scriptbundle key="851968" uri="/api/juniper/servicenow/scriptbundle-management/scriptbundles/851968">
                  <name>jais-3.2I20111114_2332_rsalaiz-signed.tgz</name>
                  <receiveTime>2012-01-19 04:58:04.0</receiveTime>
                  <version>3.2I20111114_2332_rsalaiz</version>
                  <isDefault>false</isDefault>
           </scriptbundle>
    </scriptbundles>
    

    Sample JSON Output

    {
       "scriptbundles":{
            "@uri":"/api/juniper/servicenow/scriptbundle-management/scriptbundles/",
            "@size":"2",
            "scriptbundle":[
                {
                    "@key":"295312",
                    "@uri":"/api/juniper/servicenow/scriptbundle-management/scriptbundles/295312",
                    "name":"jais-3.2R1.2-signed.tgz",
                    "receivetime":"2012-01-19 04:58:04.0",
                    "version":"3.2R1.2",
                    "isdefault":"false"
                },
                {
                    "@key":"851968",
                    "@uri":"/api/juniper/servicenow/scriptbundle-management/scriptbundles/851968",
                    "name":"jais-3.2I20111114_2332_rsalaiz-signed.tgz",
                    "receivetime":"2012-01-19 04:58:04.0",
                    "version":"3.2I20111114_2332_rsalaiz",
                    "isdefault":"false"
                }
            ]
        }
    }
    

    Response Status Code

    Message

    Description

    204 No Content

    No script bundle exists

    Modified: 2016-08-10