Hi Ralf,
Wow, thanks for the detailed response. This all sounds promising! I guess I should have been a little more clear in when I stated: "
Seems like it's pretty basic for now". I meant to be specific in what I believe is available to us from IBM. We recently upgraded to 11.1.7 and were looking to explore the capabilities of the REST endpoints provided here,
https://<our_cognos_cloud_instance.com>/api/api-docs/. Currently it appears this IBM provided REST API doesn't cover the reporting triggering; we're still limited to using the trigger.bat as follows. We'd like to move away from this. It would be nice to provide a few REST calls through apache nifi or airflow, or even CA Technologies Autosys.
trigger.bat http://localhost:9300/p2pd/servlet/dispatch username
password namespace databaserefreshtriggername,emailtriggername
Perhaps, we'll have to see what comes of the discussion to go public with regards to the report execution work.
Thanks,
Mike
------------------------------
MICHAEL JANDORA
------------------------------
Original Message:
Sent: Thu March 04, 2021 03:23 PM
From: Ralf Roeber
Subject: Looking to use the Cognos REST API to trigger a report or schedule
Hello Michael,
thank you for bringing this up.
>While those provide some value, the real value would be in triggering a report either based on some event or via a schedule.
Jason has said this. Use triggered schedules. I can confirm this.
We have seen customer doing so and triggering 50.000+ reports at the end of the month with sales provisions for insurance retails on 100% unix environments (but of course using CLI and host access).
>Would also like to open a discussion in general of what anyone else is using the API for. Seems like it's pretty basic for now.
We have used SDK (SOAP) API extensively for configuring, skinning, deployments, user rights, group rights and testing reports (2.500+ reports with over a hundred parameters in serial) .... everything in Java, tested against CA8+10+11.0+11.1
I would be happy to share code.
We have used Angular + "REST API" for automating almost anything related to report and data retrieval that the portal offers. Presented this in Miami 2018 and at IBM think 2019 in SF - including authentication, interactive report running, retrieval of save outputs in different formats ending up in Dashboard with First Contentful Paint in less then 0.5s and fully interactive in less then 2s.
Apart of that we automated some features we were missing by recording click paths and re-running them in test automators. I imagine that triggering something would be feasible.
We built quite an extensive testsuite around this and combined it with FOSS test emulators. Testing Querystudio ... create reports, run reports, change sorting, ordering ... Testing cubes: open report on cube, get a cube dimension and test that all expected members are there in the right order ... Would love to share the code and experience.
We have all projects on github in private repos and have asked @Jason Tavoularis, @RACHEL SU and Chris McPerson on going public. Steve Macko was asked to review if we can open the repos to the public. --> topic is loading, we hope to get a positive response soon. In the meantime I would be happy to share details with licenced IBM Cognos users for sure.
In the IBM Cognos usergroup for DACH (Germany, Austria, Switzerland) there is a thread about SDK. I think it must not be limited to "german".
Ah ... almost forgot the loadtesting plans with jMeter. We have prepared plans with RAMPUP + timing to understand where our environments start queuing in order to calculate expected concurrency and the involved hardware dimensions.
Looking forward to ideas on the topic.
------------------------------
Ralf Roeber
https://linkedin.com/in/ralf-roeber-470425a/
Original Message:
Sent: Thu March 04, 2021 10:51 AM
From: MICHAEL JANDORA
Subject: Looking to use the Cognos REST API to trigger a report or schedule
Currently, I have a way to establish a session within Cognos Analytics, using the session endpoint. Once I've logged in, I can hit all the basic endpoints, like groups, and files. While those provide some value, the real value would be in triggering a report either based on some event or via a schedule. From what I can tell, in the swagger documentation, there isn't any report, schedule, dispatcher type endpoint.
Has anyone figured out a way to accomplish something like this? I see there are many datasource endpoints, but nothing seemed helpful. Would also like to open a discussion in general of what anyone else is using the API for. Seems like it's pretty basic for now.
------------------------------
MICHAEL JANDORA
------------------------------
#CognosAnalyticswithWatson