Enrich the shell script created in the previous example to add the Remote Engine to an existing Remote Engine Cluster.
Before you begin
You have a Remote Engine installed and already paired.
You already have a Remote Engine Cluster.
About this task
The following example extends the shell script shown in the previous example but can also be used standalone, provided that you have a Personal Access Token to authenticate your API request.
- If you do not have one, generate a Personal Access Token from your profile preferences in Talend Cloud. This token can be used to sign your API calls.
Add the Remote Engine to the Remote Engine Cluster of your
choice with a PUT as follows.
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Bearer 'VtBmuAoYSse6FW4zh8JqlnQsl73P8xAB4j9-qD98qx8HI48DDJEUKCBKncU5FSGi'' 'https://api.us.cloud.talend.com/tmc/v1.3/runtimes/remote-engine-clusters/5dc02e89f87cb233a2f83990/engines/5d2f1d9018e83f4406199233'Note: You can retrieve Remote Engine and Remote Engine Cluster IDs with a GET on the /tmc/v1.3/runtimes/remote-engines or /tmc/v1.3/runtimes/remote-engine-clusters endpoints. You can also find their ID from the URL in Talend Cloud when displaying a Remote Engine or Remote Engine Cluster details.