update_segment
Modify an existing NSX network segment's display name or subnet via partial update. Verify port_count before altering subnet to prevent traffic loss for attached VMs.
Instructions
[WRITE] Update an existing network segment (partial update via PATCH).
Only the fields you pass change. Use get_segment first, and prefer this over create_segment for an existing segment: create is a PUT and overwrites everything. Changing subnet re-addresses the gateway and can drop traffic for attached VMs, so check port_count first. Returns the updated segment dict, else {"error", "hint"}.
Args: segment_id: Segment ID to update, as returned by list_segments. display_name: New display name. Optional. subnet: New gateway CIDR, e.g. "192.168.1.1/24". Optional. target: NSX Manager target from config (default if omitted).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subnet | No | ||
| target | No | ||
| segment_id | Yes | ||
| display_name | No |