Discussions specific to the Microsoft Hyper-V hypervisor
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 » Sep 19, 2019 3:44 pm

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: 18278
Liked: 1564 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 » Sep 20, 2019 10:21 am

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 » Sep 20, 2019 1:11 pm

Is there a way to do a Hyper-V single VM backup without an existing full backup?

nmdange
Expert
Posts: 469
Liked: 113 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 » Sep 20, 2019 2:20 pm

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 » Sep 20, 2019 3:06 pm

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 3 guests