REST API knowledge exchange
Post Reply
Kevinl
Novice
Posts: 6
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: 3272
Liked: 764 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
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests