Forum Discussion

rlinton_204204's avatar
rlinton_204204
Icon for Nimbostratus rankNimbostratus
May 28, 2015

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

  • 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.