You can use the API examples when using NSX for vSphere and multiple physical NICs

Starting with Cloud Foundation 3.9.1, you can use the SDDC Manager public API to automate multiple physical NIC configurations when using NSX for vSphere.