PHP and iControl REST
Updated Jun 06, 2023
Version 2.0Was this article helpful?
Updated to include the use of PATCH. Note that with class the modify method is updated to include the PATCH variable. Set this to true to use PATCH method. Remove it or set to false to use PUT. For function, I have added the PATCH variable to the other methods.
Example with class:
'This is a modified Virtual Server');
print_r($r->modify("/ltm/virtual/iCR_Test_VS",$description,true));
echo "Modify HTTP Return Code: $r->code\n";
Example with function:
'This is a modified Virtual Server');
print_r(iCR($handle,$username,$password,'PATCH',$url."/iCR_Test_VS",$description));
Let me know if you feel there are any other useful features required