PHP and iControl REST
Updated Jun 06, 2023
Version 2.0Was this article helpful?
` "; $tildaPath = str_replace("/", "~", $pools['fullPath']); //GET THE pool stats $pool_stats = iCR($username, $password, "GET", $BASE_URL."/ltm/pool/".$tildaPath."/stats/?\$select=status.availabilityState", NULL); echo $pool_stats["entries"]["status.availabilityState"]["description"] . "
"; //GET THE pool members $pool_members = iCR($username, $password, "GET", $BASE_URL."/ltm/pool/".$tildaPath."/members/?\$select=name,address,state", NULL); foreach ($pool_members['items'] as $members) { echo $members['name']." ".$members['address']." ". $members['state']."
"; } } ?> ` ============================CODE================================================
So, when make first call, I get ~1200 pool. Second call, will degrade the performance. And third call even makes everything worse. I get execution time exceeded error. I increased it to 300s but still that's not enough. Do you have any thoughts on optimizing this code. I would appreciate any help. Thanks