PHP and iControl REST
Problem this snippet solves: PHP and iControl REST interfaces
Here are a couple of ways to use PHP and iControlREST (iCR). iCR is lighter-weight than iControl SOAP but is only supported on >= v1...
Updated Jun 06, 2023
Version 2.0PeteWhite
Employee
I work in the EMEA F5 Professional Services team. I generally deal Service Provider stuff because i come from that background ( 12 years working for Nokia Networks prior to joining F5 in 2013 )tgbauer_378759
Nimbostratus
Dec 13, 2018Hi Pete,
For F5 LTM ver=13, needed to change the "PUT" to a "PATCH" in the modify() function. Otherwise got error when PATCHing the transaction like: transaction failed:0107028c:3: The source (::) and destination addresses for virtual server must be be the same type (IPv4 or IPv6).
Hear the change was made in ver=12 Know that "PUT" worked in ver=11
Maybe worth updating so it checks which version is in use and then uses the appropriate CURLOPT_CUSTOMREQUEST ?
By the way, thank you for all the work you put into this!! It is getting lots and lots of good use :-)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)