update_segment
Partially modify an existing NSX segment by passing only the fields to change, preserving untouched settings. Check port count before changing a subnet to avoid dropping VM traffic.
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"}.
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": "update_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subnet | No | New gateway CIDR, e.g. "192.168.1.1/24". Optional. | |
| target | No | NSX Manager target from config (default if omitted). | |
| segment_id | Yes | Segment ID to update, as returned by list_segments. | |
| display_name | No | New display name. Optional. |