/api/space/script-management/job-instances/{job-id}/script-mgmt-job-results

The following operation is supported on this resource:

  • GET - Get Script management job results
GET /job-instances/{job-id}/script-mgmt-job-resultsVersion 1

Sample Usage

GET /job-instances/{job-id}/script-mgmt-job-results


  • Parameters:
    NameTypeURI TypeDescriptionRequired
    job-idIntegerPath   Y
  • Sample Output XML:
    <script-mgmt-job-results total="Integer" uri="/api/space/script-management/job-instances/{job-id}/script-mgmt-job-results">
         <script-mgmt-job-result>
               <id>Integer</id>
               <script-params>String</script-params>
               <action-url>String</action-url>
               <job-status>String</job-status>
               <enable-auto-upgrade>Boolean</enable-auto-upgrade>
               <job-id>Integer</job-id>
               <script-id>Integer</script-id>
               <rule-data>String</rule-data>
               <context><![CDATA[String]]></context>
               <job-remarks>String</job-remarks>
               <sequence>Integer</sequence>
               <script-version>String</script-version>
               <rule-type>String</rule-type>
               <ip>String</ip>
               <action-type>Transfer_Script</action-type>
               <hostname>String</hostname>
               <script-enable>Boolean</script-enable>
               <script-type>TYPE_COMMIT</script-type>
               <script-mgmt-job-status>FAILED</script-mgmt-job-status>
               <script-name>String</script-name>
               <category>String</category>
               <device-id>Integer</device-id>
               <associated-tag-list>String</associated-tag-list>
               <local-script-response><![CDATA[String]]></local-script-response>
               <on-close-string><![CDATA[String]]></on-close-string>
               <script-bundle-id>Integer</script-bundle-id>
               <device-name>String</device-name>
               <script-status>String</script-status>
               <device href="/api/space/device-management/devices/{deviceId}"/>
               <job href="/api/space/job-management/jobs/{jobInstanceId}"/>
               <script href="/api/space/script-management/scripts/{scriptID}"/>
         </script-mgmt-job-result>
    </script-mgmt-job-results>

  • Sample Output JSON:
    {
       "script-mgmt-job-results" : {
         "@total" : "Integer" ,
         "@uri" :
         "/api/space/script-management/job-instances/{job-id}/script-mgmt-job-results"
         ,
         "script-mgmt-job-result" : {
           "id" : "Integer" ,
           "script-params" : "String" ,
           "action-url" : "String" ,
           "job-status" : "String" ,
           "enable-auto-upgrade" : "Boolean" ,
           "job-id" : "Integer" ,
           "script-id" : "Integer" ,
           "rule-data" : "String" ,
           "context" : "String" ,
           "job-remarks" : "String" ,
           "sequence" : "Integer" ,
           "script-version" : "String" ,
           "rule-type" : "String" ,
           "ip" : "String" ,
           "action-type" : "Transfer_Script" ,
           "hostname" : "String" ,
           "script-enable" : "Boolean" ,
           "script-type" : "TYPE_COMMIT" ,
           "script-mgmt-job-status" : "FAILED" ,
           "script-name" : "String" ,
           "category" : "String" ,
           "device-id" : "Integer" ,
           "associated-tag-list" : "String" ,
           "local-script-response" : "String" ,
           "on-close-string" : "String" ,
           "script-bundle-id" : "Integer" ,
           "device-name" : "String" ,
           "script-status" : "String" ,
           "device" : {
             "@href" : "/api/space/device-management/devices/{deviceId}"
           } ,
           "job" : {
             "@href" : "/api/space/job-management/jobs/{jobInstanceId}"
           } ,
           "script" : {
             "@href" : "/api/space/script-management/scripts/{scriptID}"
           }
         }
       }
    }

  • Access Control

    The following capabilities are required to access this API: ViewScriptExecutionsCap, JobMgr