Hello All,
After upgrading our vCloud instances to version 10, we've found that the ability to migrate VMs between resource pools has been removed from the GUI. Support tells us this functionality is still possible, but only through an API call:
https://[redacted].com/api/admin/extension/resourcePool/[id]/action/migrateVms
I've searched through VMware's documentation but can only find very sparse info on this API call. I did locate an example on Tom Fojta's blog... from 2013 - https://fojta.wordpress.com/2013/01/13/vcloud-director-online-migration-of-virtual-data-center/
When I craft a query and requisite parameters based on that example, I get a 404 error in return. I'm able to query each entity separately, so I'm not sure what is triggering the 404. I'm guessing the API call has changed since his post 7 years ago.
Here is the body of my request:
<MigrateParams xmlns="http://www.vmware.com/vcloud/extension/v1.5" xmlns:vcloud_v1.5="http://www.vmware.com/vcloud/v1.5">
<VmRef href="https://[redacted].com/api/vApp/[id of VM to be migrated]"/>
<ResourcePoolRef>
<VimServerRef name="[FQDN of vCenter]" href="https://[redacted].com/api/admin/extension/vimServer/[id of vCenter]" type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<MoRef>[MoRef of target resource pool]</MoRef>
<VimObjectType>RESOURCE_POOL</VimObjectType>
</ResourcePoolRef>
</MigrateParams>
Has anyone used this API call before who might be able to give me a clue as to what I'm getting wrong?
Thanks