I've been try to get the default IaaS host from an action (to populate dynamic forms in a blueprint). the following code simply returns "undefined":
var host = Server.findAllForType("vCAC:VCACHost");
I sure i'm missing something basic - but i assumed that the IaaS host would be available..
What you really want to try is something like this...
var tenant = "vsphere.local" //tenant name
var host = vCACCAFEHostManager.getDefaultHostForTenant(tenant , true);