How can I export Jobstream definitions from AAI?
Release : 5.8.6
Component : AUTOMIC AUTOMATION INTELLIGENCE ENGINE
Jobstream definitions can be exported to a file using either the Import/Export feature or using the REST API.
Import and Export Utility
In the <Install Directory>/import_export/bin directory there is a jawsExport.bat for Windows and jawsExport.sh for Linux that can be run to export the configuration data from AAI to an xml file.
The full guide is attached to this article, but some quick examples of how to export are below:
Export all definitional data from JAWS
jawsExport.sh -u <jaws admin user> -p <jaws admin password> -e <export file name> -s <host>:<port>
Export definitional data from JAWS for one scheduler
jawsExport.sh -u <jaws admin login> -p<jaws admin password> -e <export file name> -s <host>:<port> -S <scheduler name>
Export all definitonal data from JAWS in https/TLS environments
jawsExport.sh -u <jaws admin login> -p<jaws admin password> -e <export file name> -s <host>:<port> -t
Export all definitional data from JAWS using a properties file
jawsExport.sh –d <parameter file name>
The export only allows to export all configuration data, but the import does allow you to specify which configuration data that you want to import back into an AAI instance. These are documented in the attached guide.
If you open a browser and go to http://:8080/jaws/devPreview/ it will bring you to the REST API.
There is a section on jobstream api's like below:
For each API there is a "Try it now" button which will return the results, but also give you a URL and CURL sample script you can use to help with scripting API calls.
If you get a 401 message, it means you have not provided proper authentication.
You can get an authentication login sample from the section below: