AutoSys Command Execution feature is a new component starting v24 release in AutoSys. This document provides an example JIL syntax
AutoSys Workload Automation
/tmp/test.jil on the AEWS server and refer to that file as inputinsert_job: jil_test job_type: CMD command: sleep 10machine: localhost
curl -X POST --location 'https://AEWS.example.com:9443/AEWS/command/run' \--header 'Content-Type: application/xml' \--header 'Accept: application/json' \--header 'Authorization: Basic ZWptY29tbWFuZGVyOmVqbWNvbW1hbmRlcg' \--data '<?xml version="1.0" encoding="UTF-8"?><commandRequest> <timeout>0</timeout> <command>jil < /tmp/test.jil</command> <inFile></inFile></commandRequest>'{ "stdOut": [ "______________________________________________________________________________", "", "CAUAJM_I_50323 Inserting/Updating job: jil_test", "CAUAJM_I_50205 Database Change WAS Successful!", "______________________________________________________________________________", "", "CAUAJM_I_52301 Exit Code = 0", "______________________________________________________________________________", "" ]}
Note: The Content-Type can be application/xml or application/json. Accept header follows the same approach too. %InFile paramter (%InFile is case sensitive )curl -X POST --location 'https://AEWS.example.com:9443/AEWS/command/run' \--header 'Content-Type: application/xml' \--header 'Accept: application/json' \--header 'Authorization: Basic ZWptY29tbWFuZGVyOmVqbWNvbW1hbmRlcg' \--data '<?xml version="1.0" encoding="UTF-8"?><commandRequest> <timeout>0</timeout> <command>jil < %InFile</command> <inFile>insert_job: jil_test job_type: CMD command: sleep 10 machine: localhost</inFile></commandRequest>'
AutoSys Swagger can be accessed via URL: https://AEWS.example.com:9443/AEWS/api/#/
Only these commands are permitted via AutoSys Command Execution, this cannot be customized further.