Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 229097

Re: How to convert from vCloud:VmwHost to VC:HostSystem

$
0
0

vCloud and VC plug-ins don't know about each other so there is no direct conversion.

 

One possible way to get VcHostSystem object matching that VclVMWHost object is:

  • Using VcPlugin.getAllHostSystems(null,null) API, get the list of available VC hosts
  • Iterate over this list and get the element whose id matched the id of the provided VclVMWHost object

 

I don't have a working vCloud environment in front of me right now so I can't check the above, but in theory it should work.

 

Note that VcPlugin.getAllHostSystem() API has 2 parameters which should allow to narrow the search results, but I don't remember the exact syntax for them; for now, you can pass null in both, and the call will return all hosts.

 

Hope this helps,

 

-Ilian


Viewing all articles
Browse latest Browse all 229097

Trending Articles



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