I'm trying to remove a vmnic from a dvUplink, so that I can add it to a VSS. I tried the below code and received an error:
Cannot convert com.vmware.vim.vi4.DVPortConfigSpec@ea858ec6 to com.vmware.vim.vi4.DVPortConfigSpec[] (Workflow:#VMK Master workflow / Delete vmnic DVS (item5)#5)
var DVPortConfigSpec = new VcDVPortConfigSpec;
DVPortConfigSpec.name = dvUplink;
DVPortConfigSpec.key = portKey;
DVPortConfigSpec.operation = "remove";
var task=DVS.reconfigureDVPort_Task(DVPortConfigSpec);