Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Qlik experts,
Why the below URL not showing the Generate cache connections detail and it's showing only Publish task details?
But Qlik NPrinting console showing everything.
The path you shared is for NPrinting Publish Tasks.(output in image directly below).
https://qlikserver3.domain.local:4993/api/v1/task
If you wish to output NPrinting Connections use (output in image in next comment)
https://qlikserver3.domain.local:4993/api/v1/connections
Kind regards...
https://qlikserver3.domain.local:4993/api/v1/connections
Hi Frank,
Thanks for your comments!
I want to see the connection metadata reload history.
Using the below path we can see the publish task complete history(how many times executed), same like that I want ot see the connection meta data reload history.
Get/task/{taskid}/executions/{executions}
Hi @sabari1910
https://yourservername:4993/api/v1/connections does give the same status found in the NP web console.
Note however executing the http API path produces time reported is in UTC time.
In the example I provided it is Pacific Time + 8 UTC
See below which demonstrates this point:
Kind regards...
Hi @sabari1910
just wanted to add another comment on slightly different nature. When creating Community topic please create descriptive title. I just noticed that you have created 2 posts using "NPrinting API" as a title although they describe different issue. This makes community difficult to browse and search for answers which we have already covered.
Now down to your question:
Available information is in documentation so always relate to it :https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=59
Regarding your actual question - as noted in help document the method you are executing is only returning tasks objects:
Now I am assuming that you wanted to get the list of all tasks executions with the details via API like the one below and indeed API task executions call requires task Id as a parameter which for "cache rebuild task for connection" simply isn't exposed. I did try to pass the Id of the task which i have obtained using undocumented "npe" API endpoint which NPrinting interface uses, but that hasn't worked with public API. That endpoint seem to support only Publish Task type and Import task type. All other executions details are not available via public api.
cheers
Lech
@Lech_Miszkiewicz Thanks for your comments and inputs.
When next time posting anything in this community will put descriptive titles 🙂