vcenter vcha cluster: ip info

The ip_info structure contains fields related to an ip. This structure was added in vSphere API 6.7.1.

Representation:

{
    "ip_family""IPV4",
    "ipv4"{
        "address""string",
        "prefix"1,
        "subnet_mask""string"
    },
    "ipv6"{
        "address""string",
        "prefix"1
    },
    "gateway_ip""string"
}

Attributes:

Name Type Description
Required
ip_family string Family of the ip. This attribute was added in vSphere API 6.7.1.

Defines the IP address family. This enumeration was added in vSphere API 6.7.1. Value is one of:
IPV4: IPV4 address family. This constant was added in vSphere API 6.7.1.
IPV6: IPV6 address family. This constant was added in vSphere API 6.7.1.

ipv4.address string IP address of the configured network interface. This attribute was added in vSphere API 6.7.1.

ipv4.subnet_mask string The subnet mask of the interface. This attribute was added in vSphere API 6.7.1.

ipv6.address string IP address of the configured network interface. This attribute was added in vSphere API 6.7.1.

ipv6.prefix long The CIDR prefix of the interface. This attribute was added in vSphere API 6.7.1.

Optional
ipv4 ipv4_info If the type of the ip family is IPV4, then this will point to IPv4 address specification. This attribute was added in vSphere API 6.7.1.

Optional. It is only relevant when ip_family has value IPV4. This field is optional and it is only relevant when the value of ip_family is IP_v4.

ipv4.prefix long The CIDR prefix of the interface. This attribute was added in vSphere API 6.7.1.

Optional. If unset , then the subnet mask is invalid.

ipv6 ipv6_info If the type of the ip family is IPV6, then this will point to IPv6 address specification. This attribute was added in vSphere API 6.7.1.

Optional. It is only relevant when ip_family has value IPV6. This field is optional and it is only relevant when the value of ip_family is IP_v6.

gateway_ip string Gateway IP address. This attribute was added in vSphere API 6.7.1.

Optional. If unset, no gateway is specified.