delete_segment
Remove a network segment after checking port_count for attached VMs. Warns this disconnects all attached VMs and is irreversible; confirm before deletion.
Instructions
[WRITE] Delete a network segment. WARNING: this disconnects all attached VMs.
Irreversible. Run get_segment on the same segment_id first and check port_count — NSX refuses to delete a segment that still has attached ports — and confirm with the user before deleting. Returns a confirmation string, or an "Error: ..." string — not a dict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | NSX Manager target from config (default if omitted). | |
| segment_id | Yes | Segment ID to delete, as returned by list_segments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |