VMware Cloud Community
SimpleCoder
Contributor
Contributor

IPv4 subnet associated to a port-group

Hi all-

Is there an API that I can query the vCenter to get the IPv4 subnet corresponding to a port-group in a vswitch or a vDS?

Thanks.

0 Kudos
1 Reply
daphnissov
Immortal
Immortal

There's no such thing as an IPv4 subnet corresponding to a port group. Port groups reference VLAN IDs. The L3 addressing you choose to use on that segment is up to you and not visible or configured in vSphere.

0 Kudos