get_segment
Retrieve full details for a specific network segment, including attached ports, subnets, and gateway. Check port_count before deletion to confirm whether the segment can be deleted.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"segment_id": "<segment_id>"
},
"name": "get_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | NSX Manager target from config (default if omitted). | |
| segment_id | Yes | Segment ID — final component of /infra/segments/<id>, as returned by list_segments. |