Automating a preparation run via API
In addition to the Run feature of the Talend Cloud Data Preparation application, it is possible to run preparations using API calls with little to no configuration.
Having this option means that you can also use Qlik Application Automation or any other third party tool to schedule and automate your preparation runs.This example uses an existing preparation called customers_preparation, based on a dataset that contains customers data stored on a database. The preparation applies some formatting operations on the data, and has been run to a new dataset. You will now use API calls to easily run this preparation again and regularly clean incoming data. The following documentation will describe the four main steps to run a preparation: list preparations, launch a run, monitor the run, and retrieve the history.
If you want to look at the documentation of the API endpoints used in this scenario, open the Swagger documentation page that corresponds to your environment and select Talend Data Preparation - Run API. For more information, see Accessing the Talend Data Preparation REST API documentation.
Before you begin
- You have access to the preparation as owner or via sharing.
- You have manually launched the preparation in the Talend Cloud Data Preparation interface at least once.
- The preparation destination is not Direct download.
- You have access to the destination dataset as owner or via sharing.
- The manual preparation run was successful.
Retrieve the preparation ID
Procedure
Results
Run the preparation
Procedure
Results
Monitor the preparation run
Procedure
Results
Get the run history
Procedure
Results
The history retrieved in the response only shows runs launched using the API. On the contrary, the Run history from the Talend Cloud Data Preparation interface only shows runs launched manually in the application.