AutoSys REST API calls using encrypted password
search cancel

AutoSys REST API calls using encrypted password

book

Article ID: 429213

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

This article talks about using an encrypted password for AutoSys REST API calls for various functions.

Use case: The ability to force start a job from a 3rd party application outside of AutoSys using REST API call with an encrypted password.

Resolution

  1. Encrypt the password using the os level command base64

    echo -n "user:password" | base64


  2. Using curl, attempt to force start a test job from your 3rd party tool. Substitute the appropriate details for the green italicized fields in the example below.

    curl -k -X POST -H "Authorization: Basic your_encrypted_password" -H "Content-Type: application/json" -d "{\"jobName\": \"your_jobname\"}" https://your_webservices_url:9443/AEWS/event/force-start-job

    The expected outcome in the above example is that your job "your_jobname" is force started in AutoSys.

Additional Information

Reference the REST Webservices OpenAPI Documentation section of the Autosys Workload Automation REST API Swagger Documentation for available API calls.