REST API knowledge exchange
Post Reply
edgarbarbosa
Lurker
Posts: 1
Liked: never
Joined: Jul 10, 2026 6:17 pm
Full Name: Edgar Barbosa da Silva
Contact:

enabling the network remapping to Resplication Job

Post by edgarbarbosa »

Hi Guys

I'm trying to find the correct API syntax to enable network remapping during replication job creation. The REST API executes successfully, but the network remapping parameter is not being applied, leaving the source and target networks unconfigured after the job is created.

Code: Select all

PUT {{baseUrl}}/api/v1/jobs

{
  "name": "DR-Replication-vCenter-Prod-To-DR2",
  "description": "Automated DR Replication Job via Postman REST API",
  "type": "VSphereReplica",

  "virtualMachines": {
    "includes": [
      {
        "type": "VirtualMachine",
        "name": "test",
        "objectId": "vm-341355",
        "platform": "VSphere",
        "hostName": "vc.d20ed48beb2d48655555555.westus.avs.azure.com"
      }
    ]
  },

  "destination": {
    "host": {
      "type": "Cluster",
      "name": "Cluster-1",
      "objectId": "domain-c9",
      "platform": "VSphere",
      "hostName": "vc.eaf380368993430a0000000.eastus.avs.azure.com"
    },
    
    "folder": {
      "type": "Folder",
      "name": "new-vms",
      "objectId": "group-v320700",
      "platform": "VSphere",
      "hostName": "vc.eaf380368993430a0000000.eastus.avs.azure.com"
    },
    "datastore": {
      "type": "Datastore",
      "name": "vsanDatastore",
      "objectId": "datastore-14",
      "platform": "VSphere",
      "hostName": "vc.eaf380368993430a0000000.eastus.avs.azure.com"
    },
    "suffix": "_replica"
  },

  "jobSettings": {
    "replicaNameSuffix": "_replica",
    "restorePointsToKeep": 7,
    "metadataRepositoryId": "88788F9ED8F54EB4BC4F9B3F5403BDDD",

   "enableNetworkMapping": true,

    "networkMappings": [
      {
        "sourceNetwork": {
          "type": "Network",
          "name": "L3_DISK_DR (TTTT-DVS-NSX)",
          "objectId": "dvportgroup-329500",
          "platform": "VSphere",
          "hostName": "vc.d20ed48beb2d48655555555.westus.avs.azure.com"
        },
        "targetNetwork": {
          "type": "Network",
          "name": "L3_eCloud_DR-POC (TTTT-400-CVDS)",
          "objectId": "dvportgroup-269000",
          "platform": "VSphere",
          "hostName": "vc.eaf380368993430a0000000.eastus.avs.azure.com"
        }
      }
    ]
  }
}
[Moderator: Added code tags to preserve formatting]
david.domask
Product Manager
Posts: 3761
Liked: 914 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: enabling the network remapping to Resplication Job

Post by david.domask »

Hi edgarbarbosa,

Just to confirm, checking your code and the VMware targets, it looks like you're using VMware on Azure, correct?

Can you confirm that you meet this requirement for Network Remapping before we dig further into the issue? As far as I know, you don't need to supply any parameter, the presence of the network mapping rules implies the feature should be enabled, but if you could confirm that you meet that limitation is not relevant, can check further.

>"enableNetworkMapping": true,

As far as I know, this parameter is not needed / does not exist, but will confirm it after your response on the VMware on Azure limitation.
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest