Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
When attempting to retrieve API data using IBM's Concert Workflows (CW) "no-code/low-code" solution, there are "more than one way to skin a cat!"
For you cat lovers, no cats were harmed during the writing of this blog!
When you need to get some data from another third-party system, you can go about it using several methods. What are these methods? Which ones should I use? Let's explore the subject to find out!
CW is a "no-code/low-code" automation platform that allows you to automate your world so you can accomplish more with less effort. It does this by providing an easy-to-use drag and drop interface to construct automation workflows by selecting and then arranging "action blocks" to accomplish your task. Your task might be integrating systems, updating a CMDB, deploying resources, or maintaining your network infrastructure. The possibilities are endless.
Using our "skin the cat" theme, I've built a simple workflow to demonstrate each of these. Depending on the cat type, a "SwitchCase" action block will route the request to the particular data retrieval method:
Now let's run it and view the $result output in the log. Notice that the identical payload is returned. Since we are calling the same API endpoint, that is to be expected.
Finally, let's try the API endpoint method. CW contains a large number of popular API libraries from well-known products whose API endpoints have been converted into action blocks. In this example I added a SevOne APIv3 endpoint block that retrieves the device information we are after.
Now, when would you use one method over another?
If you have a "new" API endpoint that you want to work with that isn't already in the CW library, IBM will certify it and turn it into an action block within 15 business days. If you can't wait that long, or if you have an API endpoint that you wish to remain private, then you can use either the cURL or HttpRequest blocks to interact with the endpoint. If you are happy to wait for the free IBM certification process (15 business days, but typically less), then you can import the new API certification for your endpoint and can then use its shiny new API action block in your workflow.
Copy