AutoSys Workload Automation

Expand all | Collapse all

Sharepoint UI to Autosys - RestAPI Webservice POST method

  • 1.  Sharepoint UI to Autosys - RestAPI Webservice POST method

    Posted 11-21-2018 06:26 AM

    #sharepoint2010 #webservicesrest #restapi #postmethod #sharepointintegration 

    #sharepoint_integration_with_autosys

     

     

    We are migrating jobs from SOS (Scheduler) to Autosys 11.3.6. SP6
    The existing scheduler SOS have Sharepoint UI developed, in order to trigger some specific jobs in SOS - (Like forcestart job in Autosys) The same needs to be implemented here in Autosys.
    Again the users will use the same sharepoint UI and we need to receive webservice request to forcestart job using RESTAPI - POST method
    Another challenge here is to pass on the variables for the script in the job while we run through webservice (For example if the job is being forcestarted from autosys wcc or command line, then it's definition can be edited to key-in the parameters in the command field OR just modifing the script if not used as a direct command in job)
    But the problem here is the end user who uses the sharepoint UI (currently they trigger those jobs with various parameters as they wish) needs to trigger the job in Autosys with new parameter values to the autosys job's command/script.
    I had gone through the below docs. However, there is no detailed information to share the specification with developer. Also we need to incorporate the code in ASP.NET for generating webservice request
    Could someone please help me to acheive the existing functionality same in Autosys as well - Probably through webservice request.


  • 2.  Re: Sharepoint UI to Autosys - RestAPI Webservice POST method

    Posted 11-29-2018 06:37 PM

    Hi,

     

    The links you have in your post should be what your developer needs to write the code.  It contains the URL format for the requests, the parameters that can be passed and the format for any response.  The one thing that your link does not explain, but is earlier in the doc, is how to authenticate the user credentials.  I don't have a ASP.net example, but here is one in Java:

    ClientConfig config = new DefaultClientConfig();
    Client client = Client.create(config);
    client.addFilter(new HTTPBasicAuthFilter(username, password));

     

    For the updating the command parameters, one suggestion is to use a global variable and prior to starting the job to update the variable, via a web service call as well.

     

    Regards,

    Mike



  • 3.  Re: Sharepoint UI to Autosys - RestAPI Webservice POST method

    Posted 11-30-2018 01:24 AM

    Hi Mike,

     

    Thank you very much for this information. Actually I was searching for it.

     

    Could you please try to get that for ASP.Net if possible.

     

     

    Best Regards,

    Rajesh P

    Infra. Techonology Specialist

    Cognizant Technology Solutions – CIS

    Mobile: +91 9566027277      Vnet: 442435

    Email: Rajesh.Panneer@cognizant.com<mailto:Rajesh.Panneer@cognizant.com>

     

    “Success always hugs you in private, but failure always slap you in the public!!”