get_logical_port_status
Inspect the realized state of up to 50 ports on a segment to confirm attachments and binding health before segment 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.
Args: segment_id: Segment ID whose ports to inspect, as returned by list_segments. target: NSX Manager target from config (default if omitted).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| segment_id | Yes |