NSX-T API to Attach DHCP Server to Logical Switch:
------------------------------------------------------------------
POST https://<nsx-mgr>/api/v1/logical-ports
{
"logical_switch_id":<Id of the Logical switch>,
"attachment":{
"attachment_type":"DHCP_SERVICE",
"id":<DHCP_SERVER_ID>
},
"admin_state":"UP"
}