NSX-T Data Center REST API
Update a Logical Port (Deprecated)
Modifies an existing logical switch port. Parameters that can be modifiedinclude attachment_type (LOGICALROUTER, VIF), admin_state (UP or DOWN),
attachment id and switching_profile_ids. You cannot modify the logical_switch_id.
In other words, you cannot move an existing port from one switch to another switch.
This api is now deprecated.
Please use new api - /infra/segments/<segment-id>/ports/<port-id>
Request:
Method:
              PUT
            URI Path(s):
              
              
                  
                  /api/v1/logical-ports/<lport-id>
                  
              
            Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    LogicalPort+
  Example Request:
PUT https://<nsx-mgr>/api/v1/logical-ports/95a93e66-4fb1-4f7d-9484-1c8fd521e741 { "logical_switch_id":"849e339e-64b7-47cb-9480-33068f70dc5a", "address_bindings": [{"ip_address":"192.168.1.110", "mac_address":"aa:bb:cc:dd:ee:ff"}], "attachment": {"attachment_type":"VIF","id":"vif1"}, "admin_state": "UP", "_revision": 0 }Successful Response:
Response Code:
                200 OK
              Response Headers:
                  
                  Content-type: application/json
                Response Body:
    LogicalPort+