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
Joined May 16, 2019
tgbauer_378759
Dec 13, 2018Nimbostratus
Hi 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 :-)