You can use the HostNetworkSystem managed object to access and manipulate the elements of an ESXi network.