Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
sabari1910
Contributor III
Contributor III

NPrinting API

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.

https://QlikNP-Server:4993q/api/v1/tasks

Labels (2)
6 Replies
Frank_S
Support
Support

@sabari1910

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...

 

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Frank_S
Support
Support

https://qlikserver3.domain.local:4993/api/v1/connections

 

 

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
sabari1910
Contributor III
Contributor III
Author

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}

Frank_S
Support
Support

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...

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

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. 

Lech_Miszkiewicz_0-1644975712622.png

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:

Lech_Miszkiewicz_1-1644977252610.png

 

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.

 

Lech_Miszkiewicz_2-1644977391529.png

cheers

Lech

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
sabari1910
Contributor III
Contributor III
Author

@Lech_Miszkiewicz Thanks for your comments and inputs.

When next time posting anything in this community will put descriptive titles 🙂