NSX-T Data Center REST API
Create a Logical Switch (Deprecated)
Creates a new logical switch. The request must include thetransport_zone_id, display_name, and admin_state (UP or DOWN). The
replication_mode (MTEP or SOURCE) is required for overlay logical
switches, but not for VLAN-based logical switches. A vlan needs to be
provided for VLAN-based logical switches. This api is now deprecated.
Please use new api -/infra/segments/<segment-id>
Request:
Method:
              POST
            URI Path(s):
              
              
                  
                  /api/v1/logical-switches
                  
              
            Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    LogicalSwitch+
  Example Request:
POST https://<nsx-mgr>/api/v1/logical-switches { "transport_zone_id":"cfaec4c7-45c2-439b-b7c6-2c3aeabd9976", "replication_mode": "MTEP", "admin_state":"UP", "display_name":"test-logical-switch", "hybrid": true }Successful Response:
Response Code:
                201 Created
              Response Headers:
                  
                  Content-type: application/json
                Response Body:
    LogicalSwitch+
  