Forum Discussion
PeteWhite
Oct 08, 2018Employee
You can also use my PHP class in Codeshare:
https://devcentral.f5.com/codeshare/php-and-icontrol-rest
include("iCR_class.php");
$r = new iCR ("172.24.9.129");
Retrieve the iRule
$rule = $r->get("/ltm/rule/iRuleTest");
print_r($rule);
Modify the iRule
$description = array('description' => 'This is a modified iRule');
print_r($r->modify("/ltm/rule/iRuleTest",$description));
Feel free to PM me with details if you want any help with this.