hi,
i want to get some infos for provider vdc's through php vcloud api.
the script works fine as long as the red part is remarked. it gives me a list of href, type and name of all my pvdc's.
but when i try to get the cpulimit, i get this error message:
error message:
PHP Fatal error: Call to undefined function get_cpuLimitMhz() in /var/www/datacopy2.php on line 91
this is the script:
// login
$service = VMware_VCloud_SDK_Service::getService();
$service->login($server, array('username'=>$user, 'password'=>$pswd), $httpConfig);
// creates an SDK Extension object
$sdkExt = $service->createSDKExtensionObj();
$refs = $sdkExt->getVMWProviderVdcRefs();
if (0 == count($refs))
{
exit(0);
}
foreach ($refs as $ref)
{
echo "href=" . $ref->get_href() . " type=" . $ref->get_type() .
" name=" . $ref->get_name() . " cpulimit=" . get_cpuLimitMhz() . "\n";
}
can someone help me out ? thanks a lot - chris