Host-based backup of Microsoft Hyper-V VMs.
Post Reply
ddeyoung
Novice
Posts: 3
Liked: never
Joined: Sep 19, 2019 3:20 pm
Full Name: Dustin DeYoung
Contact:

VeeamZip API action on SCVMM returns error "..Must be one of VMware's ViTypes.."

Post by ddeyoung »

I'm attempting to create a VeeamZip via the REST API. This works for VM's on VMware but not for VM's on SCVMM.

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":

Image

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>'
I've attempted this action through be veeam console. It results in an error regarding no resources available to execute the job, but it is able to queue up the job for processing unlike the API results.
foggy
Veeam Software
Posts: 21139
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: VeeamZip API action on SCVMM returns error "..Must be one of VMware's ViTypes.."

Post by foggy »

Hi Dustin, VeeamZip via the REST API is not supported for Hyper-V. We will update the documentation to reflect this, thanks for the heads up!
ddeyoung
Novice
Posts: 3
Liked: never
Joined: Sep 19, 2019 3:20 pm
Full Name: Dustin DeYoung
Contact:

Re: VeeamZip API action on SCVMM returns error "..Must be one of VMware's ViTypes.."

Post by ddeyoung »

Is there a way to do a Hyper-V single VM backup without an existing full backup?
nmdange
Veteran
Posts: 528
Liked: 144 times
Joined: Aug 20, 2015 9:30 pm
Contact:

Re: VeeamZip API action on SCVMM returns error "..Must be one of VMware's ViTypes.."

Post by nmdange »

Assuming you don't want to do it through the GUI, you can use PowerShell
https://helpcenter.veeam.com/docs/backu ... l?ver=95u4
ddeyoung
Novice
Posts: 3
Liked: never
Joined: Sep 19, 2019 3:20 pm
Full Name: Dustin DeYoung
Contact:

Re: VeeamZip API action on SCVMM returns error "..Must be one of VMware's ViTypes.."

Post by ddeyoung »

oh, I guess I was assuming VeeamZip wouldn't work on Hyper-V via the CLI either. I'll give that a go.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests