You can use the API examples when using NSX-T 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-T in a workload domain.