REST API knowledge exchange
Post Reply
Kevinl
Novice
Posts: 8
Liked: never
Joined: Dec 19, 2024 4:35 am
Contact:

restore a vSphere VM from VBR V13 by its API

Post by Kevinl »

Hi team,
I would like to restore VM by API implemented by VBR v13, but I can't read its
sourceNetwork
information by vbr api.
And it does't work if i only fill the
targetNetwork
section.
Any approach that can help get the source network filled by VBR API?
Much appreciated if any help.
Kevin

Code: Select all

    "network": {
      "networks": [
        {
          "sourceNetwork": {
            "platform": "VSphere",
            "size": "string",
            "hostName": "string",
            "name": "string",
            "type": "Unknown",
            "objectId": "string",
            "urn": "string",
            "isEnabled": true,
            "metadata": [
              {
                "field": "string",
                "data": "string"
              }
            ]
          },
          "targetNetwork": {
            "platform": "VSphere",
            "size": "string",
            "hostName": "string",
            "name": "string",
            "type": "Unknown",
            "objectId": "string",
            "urn": "string",
            "isEnabled": true,
            "metadata": [
              {
                "field": "string",
                "data": "string"
              }
            ]
          }
david.domask
Veeam Software
Posts: 3277
Liked: 765 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: restore a vSphere VM from VBR V13 by its API

Post by david.domask »

Hi Kevinl,

Use the GetInventoryObjects endpoint to return network information from the respective virtualization hosts.

You can include a filter for networks and create two objects (source and target) network for the restore endpoint
David Domask | Product Management: Principal Analyst
Kevinl
Novice
Posts: 8
Liked: never
Joined: Dec 19, 2024 4:35 am
Contact:

Re: restore a vSphere VM from VBR V13 by its API

Post by Kevinl »

Hi david.domask,

Thank you for the quick response.

Here I don't need to specify the exact network associated with the VM in the sourceNetwork section, right?
Can get any vSphere object filled in the sourceNetwork section?
This is where get me confused.

Code: Select all

    "network": {
      "networks": [
        {
          "sourceNetwork": {
            "platform": "VSphere",
            "size": "string",
            "hostName": "string",
            "name": "string",
            "type": "Unknown",
            "objectId": "string",
BTW, do you have complete example that demonstrates how VM restore to Customized location?

https://helpcenter.veeam.com/references ... toreVmware

Have a good day.

Cheers
Kevin
Kevinl
Novice
Posts: 8
Liked: never
Joined: Dec 19, 2024 4:35 am
Contact:

Re: restore a vSphere VM from VBR V13 by its API

Post by Kevinl »

And I can retrieve the inventories, but can't find the exact sourceNetwork that associated with the VM to be restored. I think the sourceNetwork section need to be filled by its accurate network info.
Can you guys please help?
thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests