You can use the API examples when using NSX-T Data Center and multiple physical NICs.

In VMware Cloud Foundation 3.10, you can use the SDDC Manager public API to automate multiple physical NIC configurations when using NSX-T in a workload domain.