I'm new to the Veeam VBR API and I'm stuck, I get an Error 500, "ServiceUnavailable" when attempting a restore.
I have verified that the Ids are correct (objectRestorePointId, proxyIds and VMware objectIds). I can also restore this restore point successfully via the Veeam client.
Payload below to https://localhost:9419/api/v1/restore/vmRestore/vmware/
Code: Select all
{
"objectRestorePointId" : "35fea6e9-29c7-4fd1-ab67-b665a5f823b8",
"type" : "Customized",
"restoresProxies" : {
"autoSelection" : true,
"proxyIds" : ["54c8bb1b-e693-42db-8081-6b5943355e42","ea9be122-d6bf-464c-a6d8-873c742605a3"]
},
"secureRestore" : {
"enableAntivirusScan" : false,
"virusDetectionAction" : "Ignore",
"enableEntireVolumScan" : false
},
"powerUp" : false,
"reason" : "Restored by API",
"quickRollback" : false,
"destinationHost" : {
"hostName": "vcenter.fq.dn",
"name": "FQC",
"type": "Cluster",
"objectId": "domain-c23"
},
"resourcePool" : {
"hostName" : "vcenter.fq.dn",
"name" : "Resources",
"type" : "ResourcePool",
"objectId" : "resgroup-24"
},
"datastore" : {
"datastore" : {
"hostName" : "vcenter.fq.dn",
"name": "DS_VM_FQC_002",
"type" : "Datastore",
"objectId" : "datastore-6870"
},
"diskType" : "Source"
},
"folder" : {
"vmName" : "VMname",
"folder" : {
"hostName" : "vcenter.fq.dn",
"name" : "Restored",
"type" : "Folder",
"objectId" : "group-v14858"
},
"restoreVmTags" : false
},
"network": {
"network": {
"hostName": "vcenter.fq.dn",
"name": "Network1",
"type": "Network",
"objectId": "dvportgroup-9914"
},
"disconnected": true
}
}
Code: Select all
{
"errorCode": "ServiceUnavailable",
"message": "Cannot resolve host for restore point with id [35fea6e9-29c7-4fd1-ab67-b665a5f823b8]",
"resourceId": null
}
TIA