Hi, I've been working with SOAP messages and the vSphere vimService lately. I've ran into a snag. I want to add a virtual machine to an existing DRS group by send a soap call to the API. Here's what I'm trying:
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<ReconfigureComputeResource_Task xmlns="urn:internalvim25">
<_this xsi:type="ManagedObjectReference" type="ClusterComputeResource">domain-c22</_this>
<spec xsi:type="ClusterConfigSpecEx">
<groupSpec>
<operation>edit</operation>
<info xsi:type="ClusterVmGroup">
<name>migrateVMs</name>
<vm type="VirtualMachine" >vm-2261</vm>
</info>
</groupSpec>
</spec>
<modify>true</modify>
</ReconfigureComputeResource_Task>
</soap:Body>
</soap:Envelope>
Error Message:
Unable to find specified dynamic type "ClusterVmGroup"
Specified dynamic type ClusterVmGroup is not a DataObject type.
If I watch this call happen in Project Onyx using both the VI Client and PowerCLI the exact same call is pretty much being made, without failure. Can anyone provide an explanation on how format my SOAP to make this work? I use onyx for similar operations making SOAP calls and never have problems. I've reviewed the reference API docs, and it looks right...
Kind Regards