You can use the API examples when using NSX for vSphere 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 for vSphere.