Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
Can you please guide me the process to start and stop Qlik Compose project using RESTAPI?
Thanks,
Pooja
To execute a task via REST API - you must call 2 API's. - 1. Login and 2. Run Task.
Login API (link to help) example. Where 'DDDDDuDDDDDD=' is the base64 encoded domain/user:password value to authenticate to EM.
curl -i -k --header "Authorization: Basic DDDDDDuDDDDDDDDDDDDDD=" https://localhost/attunityenterprisemanager/api/v1/login
Executing that will provide a session ID which must be used in the Run Task API call .
curl -i -k -X POST --header "EnterpriseManager.APISessionID: a9nOpbs6aIyGnLAvP5IXCQ" --header "Content-Length: 0" https://localhost/attunityenterprisemanager/api/v1/servers/Compose/tasks/Sales%20Source__ComposeDW?a...
Hi @puja
I did not find any RestAPI available currently to start and stop the Compose storage tasks. But we can control the tasks using the Command Line.
Thank you,
Hi @puja
If you would like to see a RestAPI added for this, please submit your enhancement request here: https://community.qlik.com/t5/Ideas/idb-p/qlik-ideas
Hi, Enterprise Manager provides REST API's that can be used to start and stop Compose tasks.
The API is RunTask - https://help.qlik.com/en-US/enterprise-manager/November2022/Content/EnterpriseManager/EnterpriseMana...
Additionally Compose has a CLI to help automate start and stop of tasks if you do not wish to have EM deployed in your environment.
Thanks Tim for the update.
I tried to run the compose task as mentioned in the compose URL, that's not working.
Also, I don't see any example specific to compose project in that link.
Can you please guide me to provide an example for the same?
Hi Tim,
any chance to share the example of compose project being started by REST API?
Thanks,
To execute a task via REST API - you must call 2 API's. - 1. Login and 2. Run Task.
Login API (link to help) example. Where 'DDDDDuDDDDDD=' is the base64 encoded domain/user:password value to authenticate to EM.
curl -i -k --header "Authorization: Basic DDDDDDuDDDDDDDDDDDDDD=" https://localhost/attunityenterprisemanager/api/v1/login
Executing that will provide a session ID which must be used in the Run Task API call .
curl -i -k -X POST --header "EnterpriseManager.APISessionID: a9nOpbs6aIyGnLAvP5IXCQ" --header "Content-Length: 0" https://localhost/attunityenterprisemanager/api/v1/servers/Compose/tasks/Sales%20Source__ComposeDW?a...
Thanks a lot Tim
This solution is working fine.