NetworkDetailsSpec
NetworkDetailsSpec
This specification contains network parameters required for new virtual machines being added to a workload domain
JSON Example
{
"ipAddress": "string",
"dnsName": "string",
"gateway": "string",
"subnetMask": "string"
}
string As ^([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])$
ipAddress
Optional
IPv4 address of the virtual machine. Can be omitted if hostname (dnsName) is provded.
string As ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$
dnsName
Required
DNS name of the virtual machine, e.g., vc-1.domain1.vsphere.local
string As ^([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])$
gateway
Optional
IPv4 gateway the VM can use to connect to the outside world
string As ^([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])$
subnetMask
Optional
Subnet mask