Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have just starting to have a go at creating a very simple automation to extract (in some format, haven't got that far yet) the detailed reload log of a specific app that is sitting in a Managed space.
I have space admin privileges on the space that app is sitting on.
The issue is, I am using the "Raw API List Request", with the full path populated with the app's and the space's ID (so, not using variables or anything). I don't have any query parameters.
When I run the automation, I get the below error:
Any ideas what I am doing wrong?
Oh yep I gotchu - you were on the right path with the Raw API Request block in that case.
Do a GET to path "apps/aaaaaaaaa-bbbb-cccc-dddddddddddd/reloads/logs/{$.listReloads.item.id}" where 'aaaaaaaaa-bbbb-cccc-dddddddddddd' is your app ID and '{$.listReloads.item.id}' is the reload ID.
Hey, no worries.
Yep Qlik are changing from versioned API to namespaces, so the Raw API Request block now requires "v1/" included in the path.
Do a GET to path "v1/apps/aaaaaaaaa-bbbb-cccc-dddddddddddd/reloads/logs/{$.listReloads.item.id}" where 'aaaaaaaaa-bbbb-cccc-dddddddddddd' is your app ID and '{$.listReloads.item.id}' is the reload ID.
From the Raw API Request block path help text:
For example:
For v1 APIs, use the format "v1/{resource}", such as "v1/spaces".
For v2 APIs, use the format "{namespace}/{resource}", such as "analytics/change-stores".
The final URL is in this format: https://{current_qcs_tenant_url}/api/{path}. See this block's description for a list of available APIs. Do not include query parameters here, use the Query Parameters field for this.
Hi @Adfc_NZ !
You can use the List Reloads block under the Qlik Cloud Services group to get a list of reload record details.
Thank you Andre, much appreciated.
Yes it is working, but I guess I started this all wrong, as the result shown in the Output block that results from the List Reloads is not the detailed log that I am looking for.
Any suggestions?
No worries - what detail are you looking for? The only data points available are listed in the API docs examples here: Reloads REST | Qlik Developer Portal
Thx Andre.
I am looking for a way to automate the download of the Reload Logs, the ones we can get by actioning the "Details" in an app in a space and then "Reload History" followed by "View" and finally
Ultimate goal: an automation that I would run manually/on demand, to get me the detailed reload log of an app I chose, to save me all the above clicking. 🙂
If you target/output "{ $.listReloads.item.log }" that should give you what you're after 😊
Sorry to be a pain Andre, and I am appreciative of your help and quick replies :), but I am looking for the "Detailed log", not the summary/output that is shown when we manually reload an app. I.e. the log we can download using the button "Download detailed log". I've been looking in the blocks, can't find the one that will allow for that item to be selected and added to an output...
Oh yep I gotchu - you were on the right path with the Raw API Request block in that case.
Do a GET to path "apps/aaaaaaaaa-bbbb-cccc-dddddddddddd/reloads/logs/{$.listReloads.item.id}" where 'aaaaaaaaa-bbbb-cccc-dddddddddddd' is your app ID and '{$.listReloads.item.id}' is the reload ID.
Thank you Andre! That did the trick, and the output is the full detailed log as I wanted. I need to work no on how to go through all the reloads of an app, pick the latest one and then export it to a file so I can search within it. Wish me luck!! 😄 😄