Hello Fellows,
I am banging my head against a wall here with trying to figure out how to export DVS config using vSphere API from VCO. Calling dVSManagerExportEntity_Task method results in nothing, I suspect my selectionSet may not be correct and this is why task is not being executed. Below is my JavaScript which I am working with at the moment, any ideas what I might be doing wrong with selectionSets or
dVSManagerExportEntity_Task in general?
var dvsManager = sdkConnection.dvSwitchManager;
var dvsConfigTarget = dvsManager.queryDvsConfigTarget(host, dvs);
var dVPortgroupSelection = new VcDVPortgroupSelection();
dVPortgroupSelection.dvsUuid = dvsConfigTarget.distributedVirtualSwitch[0].switchUuid;
dVPortgroupSelection.portgroupKey = new Array();
var selectionSet = new Array();
selectionSet.push(dVPortgroupSelection);
task = dvsManager.dVSManagerExportEntity_Task(selectionSet);