RESTful knowledge exchange
Post Reply
Dave_M
Novice
Posts: 3
Liked: never
Joined: Jul 20, 2023 12:56 pm
Full Name: David Muirden
Contact:

/restore/vmRestore/vmware : 500 ServiceUnavailable

Post by Dave_M »

Hi hopefully some kind soul can help me.

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
    }
}
Response body

Code: Select all

{
  "errorCode": "ServiceUnavailable",
  "message": "Cannot resolve host for restore point with id [35fea6e9-29c7-4fd1-ab67-b665a5f823b8]",
  "resourceId": null
}
What am I doing wrong?
TIA
rovshan.pashayev
Veeam Software
Posts: 260
Liked: 42 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: /restore/vmRestore/vmware : 500 ServiceUnavailable

Post by rovshan.pashayev »

Hello Dave,

As I understand, you are attempting to restore a VM to a different location (destination). Try performing a Customized Restore, but choose the same destination. During the restore process, rename the VM and disable its network to avoid potential errors. See if you encounter similar errors. If the issues persist, it is advisable to open a support case for further assistance.

Rovshan
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
Dave_M
Novice
Posts: 3
Liked: never
Joined: Jul 20, 2023 12:56 pm
Full Name: David Muirden
Contact:

Re: /restore/vmRestore/vmware : 500 ServiceUnavailable

Post by Dave_M »

Thanks Rovshan, I'm doing a customized restore but choosing the same destination is not an option for me (as the source and destination are physically isolated environments) the source backup has been imported into a different veeam environment for restore. I'll log a case and include this additional detail.
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: /restore/vmRestore/vmware : 500 ServiceUnavailable

Post by oleg.feoktistov »

Hi David,

That error looked unexpected to me, but I could reproduce it with some of restore points. Looks like the issue is not with the environment. In current rest version and lower /objectRestorePoints output looks confusing - even though not only vSphere backups are present there, all the points have VMware platform. So, if you take, for instance, agent restore point with incorrect platform name and try to restore to vsphere, this error is thrown. If that's the case for you, just fyi the fix will be available in vNext.

Let me know if it helps.

Best regards,
Oleg
Dave_M
Novice
Posts: 3
Liked: never
Joined: Jul 20, 2023 12:56 pm
Full Name: David Muirden
Contact:

Re: /restore/vmRestore/vmware : 500 ServiceUnavailable

Post by Dave_M »

Thanks Oleg - is there an ETA or a bug number to track this with ?

Dave
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: /restore/vmRestore/vmware : 500 ServiceUnavailable

Post by oleg.feoktistov »

The fix is coming with the vNext, possibly this year. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests