get_segment
Retrieve detailed configuration and attached ports for a specific network segment. Use to verify port count before attempting deletion.
Instructions
[READ] Get full details for one network segment, including its attached ports.
Use after list_segments to inspect one segment. Returns one dict (not the list envelope): id, display_name, type, admin_state, subnets, transport_zone_path, connectivity_path (linked gateway), vlan_ids, port_count, and the first 50 ports only. A segment with attached ports cannot be deleted — check port_count before calling delete_segment. For per-port realized state use get_logical_port_status; to change the segment use update_segment.
Args: segment_id: Segment ID — final component of /infra/segments/, 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 |