RESTful knowledge exchange
Post Reply
Erwin Linker
Service Provider
Posts: 91
Liked: 9 times
Joined: Mar 30, 2016 12:58 pm
Full Name: Erwin Linker
Location: The Netherlands
Contact:

REST API Veeam B&R V1.1-REV1

Post by Erwin Linker »

I'am trying to restore a VM with de Veeam B&R REST API, to place the VM on a different datastore than the orginal back-up datastore. I send the following body:

API call: /api/v1/restore/vmRestore/vSphere/

Code: Select all

{
"RestorePointId": "a05fe692-ce99-494d-90a6-b1eb93045a3e",
"type": "Customized",
"reason": "Test Restore API test",
"restoreProxies": {
"autoSelectEnabled": true,
"proxyIds": []
},
"powerUp": false,
"quickRollback": false,
"datastore": {
"datastore": {
"platform": "VMware",
"type": "Datastore",
"hostName": "vc",
"name": "datastore",
"objectId": "datastore-64"
},
"diskType": "Source"
},
"folder": {
"vmName": "TestName",
"folder": {
"Platform": "VMware",
"type": "Folder",
"hostName": "vc",
"name": "Veeam",
"objectId": "group-v4236"
},
"restoreVmTags": false
},
"destinationHost": {
"Platform": "VMware",
"type": "Host",
"hostName": "vc",
"name": "hostname",
"objectId": "host-49709"
},
"network": {
"network": {
"Platform": "VMware",
"type": "DVSNetwork",
"hostName": "vc",
"name": "network",
"objectId": "dvportgroup-13758"
},
"disconnected": false
}
}
When i execute the command with Swagger, the restorejobs start but the destination datastore is ignored!

Regards,
Erwin
oleg.feoktistov
Veeam Software
Posts: 1982
Liked: 656 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: REST API Veeam B&R V1.1-REV1

Post by oleg.feoktistov »

Hi Erwin,

Reproduced the same in our lab.

Please note that in VBR REST 1.1-rev1 we changed the spec for vSphere Entire VM Restore adding the possibility to configure target datastores separately for VM config files and each disk. You might need to have a look at the new spec.

Nevertheless, the request with properties from 1.1-rev0 specification should still work in this particular case, so seems like it's a compatibility issue with our internal mapping. I passed it further to our Dev team, they will have a look. Meanwhile, consider changing your request a bit as per the new specification above.

Best regards,
Oleg
Erwin Linker
Service Provider
Posts: 91
Liked: 9 times
Joined: Mar 30, 2016 12:58 pm
Full Name: Erwin Linker
Location: The Netherlands
Contact:

Re: REST API Veeam B&R V1.1-REV1

Post by Erwin Linker »

Hi Oleg,

After some more testing i think i found it. After the config "datastore" i changed the code to "configurationfiledatastore" and i works. Like this:

"datastore": {
"configurationFileDatastore": {
"hostName": "vc01.int.previder.net",
"name": "int1_winvol1001",
"type": "Datastore",
"platform": "VMware",
"objectId": "datastore-64",
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest