NSX-T Data Center REST API
Created Transport Node for Discovered Node
NSX components are installaed on host and transport node is created with given configurations.Request:
Method:
POST
URI Path(s):
/api/v1/fabric/discovered-nodes/{node-ext-id}?action=create_transport_node
Request Headers:
n/a
Query Parameters:
ManagedObjectOwnershipRequestParameters+
Request Body:
TransportNode+
Example Request:
POST https://<nsx-mgr>/api/v1/fabric/discovered-nodes/5c669dc6-47a8-4508-3077-6a48f26c5a4g?action=create_transport_node { "resource_type": "TransportNode", "description": "", "display_name":"TN2", "host_switch_spec":{ "resource_type":"StandardHostSwitchSpec", "host_switches":[ { "host_switch_name":"nsxvswitch", "host_switch_profile_ids":[ { "key":"UplinkHostSwitchProfile", "value":"0a26d126-7116-11e5-9d70-feff819cdc9f" } ], "pnics":[ { "device_name":"vmnic3", "uplink_name":"uplink-1" } ], "ip_assignment_spec":{ "resource_type":"AssignedByDhcp" } } ] }, "transport_zone_endpoints":[ { "transport_zone_id":"3ed51543-7fd4-4885-8fe8-55d8317b4777" } ] }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
TransportNode+