vcenter vcha: ipv4 spec
The
ipv4_spec
structure contains IPV4 information used to configure a network interface. This structure was added in vSphere API 6.7.1.Representation:
{
"address" : "string",
"prefix" : 1,
"subnet_mask" : "string"
}
"address" : "string",
"prefix" : 1,
"subnet_mask" : "string"
}
Attributes:
Name | Type | Description |
---|---|---|
Required | ||
address | string | IPV4 address to be used to configure the interface. This attribute was added in vSphere API 6.7.1. |
Optional | ||
subnet_mask | string | The subnet mask for the interface. This attribute was added in vSphere API 6.7.1. Optional. If unset and the prefix field is unset, then an error will be reported.If unset and the prefix field is set, then the prefix field will be used to create a subnet mask whose first prefix bits are 1 and the remaining bits 0.If both the subnet_mask field and the prefix field are set and they do not represent the same value, then an error will be reported. |
prefix | long | The CIDR prefix for the interface. This attribute was added in vSphere API 6.7.1. Optional. If unset and the subnet_mask field is unset, this an error will be reported.If unset and the subnet_mask field is set, then the subnet_mask field will be used.If both the subnet_mask field and the prefix field are set and they do not represent the same value, then an error will be reported. |