The most I've been able to gain out of documentation is that you use recompose to do this?
I have a VM I'm wanting to "move" to another vApp. I'm not sure if it's actually moving or creating a new in the process as it does if you use vDirector. So pardon terminology here if it's not correct. The end objective is to replicate whatever happens in vDirector when you move a VM. I'm guessing calling recompose on both vApps, one to insert the VM the other to remove (???)
I'm either overlooking something in documentation or it's lacking any good direction on this. The REST documentation makes references to all kinds of elements that never really get explained in a maze of "for the love of humanity, what is all this?". I'm using the PHP SDK trying..
$vm = (some VMware_VCloud_API_VmType in another vApp)
$vapp = (target vApp)
$sdkVapp = $service->createSDKObj($vapp);
$params = new VMware_VCloud_API_RecomposeVAppParamsType();
$params->addCreateItem($vm);
return $sdkVapp->recompose($params);
According to the logs I see in vDirector, the task "Recomposed Virtual Application" is showing a success along with several events of "add, move or delete virtual machines from vapp" also showing success. However, I'm not seeing a VM.
What am I missing?