How can I rebuild Jobstream history from a specific date without manually updating each Jobstream through the AAI client?

book

Article ID: 211537

calendar_today

Updated On:

Products

Automic Automation Intelligence

Issue/Introduction

How can I rebuild Jobstream history from a specific date without manually updating each Jobstream through the AAI client?

Environment

Release : 6.2.0-1

Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE

Resolution

The only way to automate the rebuild with a specific date without using the AAI client is through the REST API via PUT /jobstreams/{jobStreamId} for the list of jobstreams.

You can access this API via the URL http://<serverName>:8080/aai/devPreview/#!/jobstreams/updateJobStream

 

If you set the sinceDate to the date the CA7 schedulers was added, it should rebuild history from that time forward.

You would need the jobStreamId's of the jobstreams, which you can get from the API or from the jobstream table in the database. 

select jobstreamid, description from jobstream where description='<jobstreamName>'

This could be scripted once you have the list of jobstreamId's

 

Before submitting any API call, make sure to first authenticate via the POST /authentication/login API, direct link below:

http://<serverName>:8080/aai/devPreview/#!/authentication/login API 

 

This will create a token that will allow you to submit other API requests.