Step 4. Add the URL to the External Application Code
Step 4. Add the URL to the External Application Code
Add the URL to the external application code to call the file archive transaction restore API. When the external application calls the API, Data Archive uses the parameters in the URL to run the restore job. Data Archive runs the job immediately.
The API returns either "-1" or a positive integer. "-1" indicates that an error has occurred and you can check the logs for more details. A positive integer is the scheduler ID.
You can use the scheduler ID to retrieve the job ID. Run the following command on the ILM repository to retrieve the job ID: SELECT JOB_ID FROM AM_JOBS where SCHEDULE_ID = <scheduler_ID>
On the
Monitor Jobs
page in Data Archive, file archive transaction restores run through the API are appended with "- API" in the job name.