NSX-T Data Center REST API
Create a Transport Zone (Deprecated)
Creates a new transport zone. The required parameters are host_switch_nameand transport_type (OVERLAY or VLAN). The optional parameters are
description and display_name. This api is now deprecated. Please use new api -
PUT /infra/sites/<site-id>/enforcement-points/<enforcementpoint-
id>/transport-zones/<zone-id>
Request:
Method:
POST
URI Path(s):
/api/v1/transport-zones
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
TransportZone+
Example Request:
POST https://<nsx-mgr>/api/v1/transport-zones/ { "display_name":"tz1", "host_switch_name":"test-host-switch-1", "description":"Transport Zone 1", "transport_type":"OVERLAY" }Successful Response:
Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
TransportZone+