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.
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:
PUT https://<nsx-mgr>/api/v1/logical-switches/92225022-a786-4c7d-91d1-1f9afa6deebe { "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+