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?
Thanks llian, I almost forgot about findAllForType. Can I get it by a vCenter (SDKConnection)? Also how to filter the Distributed Virtual Port groups based on filter for the object in the picture? Could you throw an example? Is it an xpath query?