Quantcast
Channel: VMware Communities : Unanswered Discussions - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 872

Retrieving VappTemplate possible?

$
0
0

I am able to get a vm using:

 

 

$sdkVm = $service->createSDKObj($href);
$vm = $sdkVm->getVm();

 

and wanted to do similar for a template:

 

$sdkVApp = $service->createSDKObj($_SESSION['cloud']['vAppTemplateHref']);

$vappTemplate = $sdkVApp->getVAppTemplate();

 

where https://cloud.domain.com/api/vAppTemplate/vappTemplate-15e4f22e-46b1-4db2-b86f-20e064029f33 is the SESSION var


 

But instead I get this error:

 

Notice: Undefined index: vappTemplate in/var/www/domain/lib/VMware/VCloud/Factory.phpon line214

Fatal error: Uncaught exception 'VMware_VCloud_SDK_Exception' with message 'Create SDK object error: no class name found ' in /var/www/domain/lib/VMware/VCloud/Factory.php:168 Stack trace: #0 /var/www/domain/lib/VMware/VCloud/Service.php(155): VMware_VCloud_SDK_Factory::create(Object(VMware_VCloud_SDK_Service), 'https://domain...') #1 /var/www/domain/html/provision_vapp_page.php(28): VMware_VCloud_SDK_Service->createSDKObj('https://domain....') #2 {main} thrown in/var/www/domain/lib/VMware/VCloud/Factory.phpon line168

 

Is this not possible?

 

dion

 

 


Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>