VMware NSX-T Data Center 3.x
VMware NSX 4.x
NSX CLI has similar if not identical commands available in different planes, such as controller, Edge, and ESXi host.
Although similarity to the commands available in different planes, nsxcli can retrieve or display different results. NSX manager nsxcli will only retrieve segments/logical-switches associated with an overlay transport zone.
The equivalent commands can be used on the Edge and ESXi host to retrieve both overlay and VLAN-backed segments/logical-switches.
This is working as intended. The UI and API calls give you a holistic view of objects that can be managed by NSX.
To view the all segments/logical-switches from a command line, please use nsxcli available on the NSX edge or NSX prepared ESXi host.