AutoSys Workload Automation

Expand all | Collapse all

Workload Automation DE : How do I specify a shell type when registering a shell job via the restapi?

  • 1.  Workload Automation DE : How do I specify a shell type when registering a shell job via the restapi?

    Posted Mar 19, 2019 11:59 PM

    Hi.

    When registering a shell script JOB in Workload Automation DE's Desktop client, register as follows.
    - Run a script
     * script / command name: /test/test.sh
     User ID: deadmin
     Shell: /bin/ksh <---- choice a shell type.

     

    As you know, when registering a job, unlike the Command job, a shell job must specify the shell type as one of the following:

     - /bin/ksh 

     - /bin/sh 

     - /bin/csh  

     - /bin/bash

     

    I want to implement the above function as a restapi.
    However, an argument specifying shell type was not found in Rest.
    How do I specify a shell type when registering a shell job via the restapi?

     

    Thanks in advanced.



  • 2.  Re: Workload Automation DE : How do I specify a shell type when registering a shell job via the restapi?

    Broadcom Employee
    Posted Mar 21, 2019 11:16 AM

    Hi,

    So as of now, the shell cannot be added via REST call.  The following are the only options available:

     

    "jobDefinitions": [
    {
    "id": "TFM=",
    "type": "UnixJobDefinition",
    "name": "LS",
    "agent": "AGENT",
    "successors": [],
    "executable": "/bin/ls",
    "executableType": "Command",
    "arguments": [
    "/tmp"
    ],
    "user": "root"
    }

     

    I'll suggest to please open an idea/enhancement in the DE Communities.

     

    Thank you,

     

    Nitin Pande

    Broadcom