Forum Discussion
iRule command to call another REST API?
Greetings. I'm wondering if there is a way to call another API via an iRule, then redirect based on the return value from that API call.
basically we have a URL pattern that contains an ID. I need to route the request to a particular application based on data associated with the ID in the URL. the API (REST'ful in this case) returns the metadata required to make the determination.
thanks! -R
1 Reply
- Scott_Hopkins
Nimbostratus
Sounds like a sideband call would be what you're looking for (example here: https://devcentral.f5.com/codeshare?sid=686) .
Not sure how many of these you get if this is something you should cache in a session table, or maybe even prefetch into a session table for performance reasons, but a remote call for each inbound seems like it would have a decent performance penalty.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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