When executing the action on a VM on SCVMM I get this error in the job history, "Error: Invalid object's ViType. It must be one of VMWare's ViTypes":
Here is the payload of the API Request:
Code: Select all
curl -X POST \
'http://x.x.x.x:9399/api/backupServers/07716702-fde4-425e-8821-ce301eb964f1?action=veeamzip' \
-H 'Content-Type: application/xml' \
-H 'X-RestSvcSessionId: <apiToken>' \
-H 'cache-control: no-cache' \
-d '<VeeamZipStartupSpec xmlns='\''http://www.veeam.com/ent/v1.0'\'' xmlns:xsd='\''http://www.w3.org/2001/XMLSchema'\'' xmlns:xsi='\''http://www.w3.org/2001/XMLSchema-instance'\''>
<VmRef>urn:HyperV:Vm:06349b01-9125-42ed-852f-82d4faa0a4ac.165faf17-27cd-4a8a-b62d-e6c7e43e46a2</VmRef>
<RepositoryUid>urn:veeam:Repository:8586ce4e-ac53-4825-b2b8-371c5857f925</RepositoryUid>
<BackupRetention>Never</BackupRetention>
<Compressionlevel>3</Compressionlevel>
</VeeamZipStartupSpec>'