NSX-T Data Center REST API
Update a Logical Switch (Deprecated)
Modifies attributes of an existing logical switch. Modifiableattributes include admin_state, replication_mode, switching_profile_ids
and VLAN spec. You cannot modify the original transport_zone_id.
Deprecated: This api is now deprecated. Please use new api - PATCH /infra/segments/<segment-id>
Request:
Method:
PUT
URI Path(s):
/api/v1/logical-switches/{lswitch-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LogicalSwitch+
Example Request:
{ "transport_zone_id":"cfaec4c7-45c2-439b-b7c6-2c3aeabd9976", "replication_mode": "MTEP", "admin_state": "UP", "hybrid": false, "_revision": 0 }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
LogicalSwitch+