get_logical_port_status
Check the realized state and attachment of up to 50 logical ports on a segment to confirm connectivity or identify unbound ports before deletion.
Instructions
[READ] Check realized state of all ports on a segment (first 50 ports).
Use this after get_segment_port_for_vm has told you which segment a VM sits on, or before delete_segment to see whether ports are still attached. Returns per-port admin_state, attachment (type/id) and realized state: attached, realized_bindings_count, transport_node_ids. NSX does not expose a single UP/DOWN flag per segment port — an attached port with realized bindings on at least one transport node is healthy. Only the first 50 ports are returned.
If bindings are missing everywhere, check get_transport_node_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | NSX Manager target from config (default if omitted). | |
| segment_id | Yes | Segment ID whose ports to inspect, as returned by list_segments. |