get_segment
Retrieve full details of a network segment, including its attached ports, to inspect properties like port_count before deletion.
Instructions
[READ] Get full details for one network segment, including its attached ports.
No side effects. Use after list_segments to inspect a single segment — e.g. check port_count before delete_segment (segments with attached ports refuse deletion). Returns: id, display_name, type, admin_state, subnets, transport_zone_path, connectivity_path (linked gateway), vlan_ids, port_count, and the first 50 ports (id, display_name, attachment). On failure returns {"error", "hint"} instead of raising.
Args: segment_id: Segment ID — the final component of the policy path /infra/segments/, as returned by list_segments. target: NSX Manager name from config.yaml. Uses the default target if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| segment_id | Yes |