F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

iControl examples in PHP5

Problem this snippet solves:

PHP5 SOAP client web page widget examples to manipulate LTM Nodes, Pools, PoolMembers (deprecated), Virtual Servers, GTM Servers, Virtual Servers, WIP Pools, and WIPs.

How to use this snippet:

PHP5 SOAP client web page widget examples to manipulate LTM Nodes, Pools, PoolMembers (deprecated), Virtual Servers, GTM Servers, Virtual Servers, WIP Pools, and WIPs.

function get_statistics($vs) {
try {
$soapClient = getSoapClient();
add_result("called LocalLB::VirtualServer::get_statistics",true);
if(is_array($vs)) {
return $soapClient->get_statistics($vs);
}else{
return $soapClient->get_statistics(array($vs));
}
}catch (Exception $e) {
add_result("Error:".formatErrors($e->getMessage()),true);  
} 
}
Published Mar 07, 2015
Version 1.0

1 Comment

  • Can you provide details on how to use this code snippet? Is there suppose to be a index page or something else?