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
  • Can you provide details on how to use this code snippet? Is there suppose to be a index page or something else?