Hi cdecanini_,
Thanks for your helpful info! Here's what I decided on doing...
- Read VC.xml to get all the configured vCenters (aka: virtual-infrastructure-host)
- Capture into an array all vCenters that are disabled, enable the vCenter and write the updated XML back to VC.xml (if any are disabled)
- For each vCenter, execute a separate workflow as you suggested above with a timeout loop
- If a vCenter connection test fails or needs to be cancelled, add that vCenter to the array of disabled vCenters from #2 above
- If a vCenter connection test passes, remove that vCenter from the array of disabled vCenters from #2 above (if it exists)
- Write the XML back to VC.xml
The issue that I'm now running into is that once I enable a vCenter, in #2 above, I'm unable to programmatically refresh the vCenter Server Inventory so that "VcPlugin.allSdkConnections" will see the newly enabled vCenter.
Any ideas on this as well as my approach?
Thanks!