Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 207710

take public vApp Templates

$
0
0

Hello!
Please tell me how can I take shared vApp templates from public calalog?

 

I use the following source code to take this templates:

 


$service = VMware_VCloud_SDK_Service::getService();
$service->login($server, array('username'=>$user, 'password'=>$pswd), $httpConfig);

 

$orgRefs = $service->getOrgRefs($orgName);
$orgRef = $orgRefs[0];
$sdkOrg = $service->createSDKObj($orgRef);

 

$vdcRefs = $sdkOrg->getVdcRefs($vdcName);
$vdcRef = $vdcRefs[0];
$sdkVdc = $service->createSDKObj($vdcRef);
$vAppTempRefs = $sdkVdc->getVAppTemplateRefs($vAppTempName);

 


But it returned me only templates by my organization ($vAppTempRefs)


Viewing all articles
Browse latest Browse all 207710

Trending Articles



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