I do not find something like VcPlugin.getAllDistributedVirtualSwitches like we have for many other objects like VcPlugin.getAllSDKConnections(). Could you one help to list and play around an array of Distributed Virtual Switches?
Check the following code:
var allDVS = Server.findAllForType("VC:DistributedVirtualSwitch");
for each (var dvs in allDVS) {
System.log(dvs);
}
Check the following code:
var allDVS = Server.findAllForType("VC:DistributedVirtualSwitch");
for each (var dvs in allDVS) {
System.log(dvs);
}