Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
We are having a few generic jobs which we used to call using the metaservlet api in Talend 7.2.1.
We recently have moved to Talend Cloud Real-Time Big Data Platform and are trying to utilize the API calls to trigger tasks in TMC.
We are using below links as reference.
https://api.us-west.cloud.talend.com/tmc/swagger/swagger-ui.html# !/executions/execute
Is there a way to pass
The generic jobs receive these values from a parent job. Kindly let me know for any other details.
Thank you in advance.
Hello,
You can pass context variables values using API call with execute function by using "parameters" tag. Example :
{
"executable": <executable_ID>,
"logLevel": "WARN",
"parameters": {
"my_context_variable": "hello",
"my_context_variable2": "hello"
}
}
For Connection, you have to initialized the connection in TMC. Context variable used in the studio need to be named correctly to work.
You have example in this documentation :
https://help.talend.com/r/en-US/Cloud/management-console-user-guide/creating-custom-connection
(There's an example with Amazon RDS)
Thank you very much for your response.
I have been trying to get the API to work and facing some issues.
Connections and Parameters work, but have issues with the context groups...
I am looking for any way to pass the value which the context groups should pick up and pass it on to child jobs as well.
In 7.2.1, we had the option to choose in TAC
What would be the equivalent value in TMC - Public API
Basically to pass DEV in DEV environment and PRD in Prod environment which would get passed to the child jobs as well....
Thanks for all the help.
Hello,
I'm not sure that you can manage that using the API, but you can have a look to this link :
https://community.talend.com/s/article/Talend-Cloud-Contextualization-cQjcP?language=en_US
I think that the paragraph Context group name as environment name describe what you want to do.