Forum Discussion
Hi I am looking for some help with an irule that can call out to an api
- Jul 12, 2023
irules is not good at parsing JSON key value in HTTP Payload, Initiating HTTPS connections on irules' sideband is also cumbersome
I suggest you use irules and cooperate with iRulesLX to initiate a sideband https connection using node.js,Node.js can use its built-in JSON library to handle JSON, which is very advantageous
You can use this for call out to another http based service: https://clouddocs.f5.com/api/irules/HTTP-Super-SIDEBAND-Requestor-Client-Handles-Redirects-Cookies-Chunked-Transfer-APM-Access-etc.html
iRules have only string parsing capabilities, but if the json is simple enough, there is no need for a full json parser.
This thread reminds me, that I always wanted to write a simple json_get_key function for iRules...
- sajmethodJul 12, 2023Altostratus
I do not know how big the reponse JSON will be yet, per example it does not look like a lot of lines. I will take a look at the sideband request as I have not used that but the all the responses are pointing to sideband solution. I will look through the link you provided to get a better understandng of it and see if it can solve the problem.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com