Most of the parameters are self-explanatory.
Parameter |
Value |
computeSpec.clusterSpecs.hostSpecs.id |
GUIDs from Step 3. |
computeSpec.clusterSpecs.hostSpecs.hostNetworkSpec.vmNics.id |
Physical NIC to use, for example, vmnic0. |
POST https://sddc-manager.vrack.vsphere.local/v1/domains/validations/creations HTTP/1.1
Authorization:Basic admin REST API admin password
Content-Type:application/json
{
"domainName": "myWLD01",
"vcenterSpec": {
"name": "vcenter-2",
"networkDetailsSpec": {
"ipAddress": "10.0.0.43",
"dnsName": "vcenter-2.vrack.vsphere.local",
"gateway": "10.0.0.250",
"subnetMask": "255.255.255.0"
},
"rootPassword": "Random0$",
"datacenterName": "new-vi-1"
},
"computeSpec": {
"clusterSpecs": [ {
"name": "Cluster1",
"hostSpecs": [ {
"id": "97fea1a1-107e-4845-bdd1-6a14ab18010a",
"license":"AAAAA-AAAAA-AAAAA-AAAAA-AAAAA",
"hostNetworkSpec": {
"vmNics": [ {
"id": "vmnic0",
"vdsName": "SDDC-Dswitch-Private1"
}, {
"id": "vmnic1",
"vdsName": "SDDC-Dswitch-Private1"
}, {
"id": "vmnic2",
"vdsName": "SDDC-Dswitch-Private2"
}, {
"id": "vmnic3",
"vdsName": "SDDC-Dswitch-Private2"
} ]
}
}, {
"id": "b858eb07-4f07-4e34-8053-d502bf9cfeb0",
"license":"AAAAA-AAAAA-AAAAA-AAAAA-AAAAA",
"hostNetworkSpec": {
"vmNics": [ {
"id": "vmnic0",
"vdsName": "SDDC-Dswitch-Private1"
}, {
"id": "vmnic1",
"vdsName": "SDDC-Dswitch-Private1"
}, {
"id": "vmnic2",
"vdsName": "SDDC-Dswitch-Private2"
}, {
"id": "vmnic3",
"vdsName": "SDDC-Dswitch-Private2"
} ]
}
}, {
"id": "45c3c5e6-6c49-46d2-a027-216d2a20c8d1",
"license":"AAAAA-AAAAA-AAAAA-AAAAA-AAAAA",
"hostNetworkSpec": {
"vmNics": [ {
"id": "vmnic0",
"vdsName": "SDDC-Dswitch-Private1"
}, {
"id": "vmnic1",
"vdsName": "SDDC-Dswitch-Private1"
}, {
"id": "vmnic2",
"vdsName": "SDDC-Dswitch-Private2"
}, {
"id": "vmnic3",
"vdsName": "SDDC-Dswitch-Private2"
} ]
}
} ],
"datastoreSpec": {
"vsanDatastoreSpec": {
"failuresToTolerate": 1,
"licenseKey": "BBBBB-BBBBB-BBBBB-BBBBB-BBBBB",
"datastoreName": "vSanDatastore"
}
},
"networkSpec": {
"vdsSpecs": [ {
"name": "SDDC-Dswitch-Private1",
"portGroupSpecs": [ {
"name": "SDDC-DPortGroup-Mgmt",
"transportType": "MANAGEMENT"
}, {
"name": "SDDC-DPortGroup-VSAN",
"transportType": "VSAN"
}, {
"name": "SDDC-DPortGroup-vMotion",
"transportType": "VMOTION"
} ]
},
{
"name": "SDDC-Dswitch-Private2",
"portGroupSpecs": [ {
"name": "SDDC-DPortGroup-Public",
"transportType": "PUBLIC" } ]
}
],
"nsxClusterSpec": {
"nsxVClusterSpec": {
"vlanId": 0,
"vdsNameForVxlanConfig": "SDDC-Dswitch-Private1"
}
}
}
} ]
},
"nsxVSpec": {
"nsxManagerSpec": {
"name": "nsx-2",
"networkDetailsSpec": {
"ipAddress": "10.0.0.44",
"dnsName": "nsx-2.vrack.vsphere.local",
"gateway": "10.0.0.250",
"subnetMask": "255.255.255.0"
}
},
"nsxVControllerSpec": {
"nsxControllerIps": [ "10.0.0.45", "10.0.0.46", "10.0.0.47"],
"nsxControllerPassword": "Test123456$%",
"nsxControllerGateway": "10.0.0.250",
"nsxControllerSubnetMask": "255.255.255.0"
},
"licenseKey": "CCCCC-CCCCC-CCCCC-CCCCC-CCCCC",
"nsxManagerAdminPassword": "Random0$",
"nsxManagerEnablePassword": "Random0$"
}
}