Automic Workload Automation

  • 1.  Getting variables set at runtime using REST API

    Posted Mar 14, 2019 03:20 PM

    Hi Guys,

    I followed this post to use the rest api

    Getting Started with the Rest API for Automic v12.1 

     

    I was able to start a job with parameters and got this from checking runid status

    I'm happy that it was successful and all, but how can I get the variables and details from the run instance?

     

    I have to get the value of this variables that were set during runtime, using the API

     

     

    I didn't saw any method here: AE REST API documentation 

     

     

    How can I do this using only the rest api?



  • 2.  Re: Getting variables set at runtime using REST API
    Best Answer

    Posted Mar 14, 2019 03:45 PM

    I believe that functionality was added in the 12.2 release of the AE. From the release notes:

     

    The following capabilities have been added in this release:

      • Start executions "recurring" or "once" (optional with alias)
      • Restart executions considering restart parameters optionally
      • Monitor executions considering alias, archive keys, title, and estimated runtime
      • Monitor executions including object variables and reports
      • Read and set execution comments
      • Read top-level inputs/prompt set variables of objects to be executed
      • Check health of REST WS and/or AE system (fail-over/clustering, load balancing)
      • Check in/out AE objects to/from an external version control system
      • Import and export AE objects

     

    12.2 Release notes 



  • 3.  Re: Getting variables set at runtime using REST API

    Posted Mar 14, 2019 04:11 PM

    Hi Michael, you are correct. I was viewing the 12.01 version

    Here

    https://docs.automic.com/documentation/webhelp/english/AWA/12.2/DOCU/12.2/AWA%20Guides/help.htm#REST%20API/RESTAPI_Refer… 

     

    I was able to figure out that something like

     http://localhost:8088/ae/api/v1/100/executions/1130498/variables

    would give me the variables of the given Job