Forum Discussion

HankLiu_159320's avatar
HankLiu_159320
Icon for Nimbostratus rankNimbostratus
Aug 20, 2014

Update iRules via API?

With the F5 Dev API, is there any way to update a specific iRule by overwriting it? I was unable to find a feasible solution. Thanks!

 

3 Replies

  • Not 100% sure but maybe using iControls. Try downloading iRule editor and see if it is using iControl posts to create iRules.

     

  • https://clouddocs.f5.com/api/icontrol-soap/LocalLB__VirtualServer__add_rule.html How does add_rule behave if iRule with the same name already exist?
  • Thanks for your response. I tried out the iRule editor, but not sure how it is modifying the rules. I did find out that iControl API does provide method to update iRules. LocalLB::Rule::modify_rule

     

    I was looking in the wrong section previously :)