delete_segment
Delete a network segment and disconnect attached VMs. Irreversible action; verify segment has no attached ports before use.
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.
Args: segment_id: Segment ID to delete, 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |