Comparing localized object names is not a good idea.
The top Datacenter object you are looking for is the root folder in the folder hierarchy, i.e. the one for which parent == null.
You should use the vSphere API to go up the parents' chain
Comparing localized object names is not a good idea.
The top Datacenter object you are looking for is the root folder in the folder hierarchy, i.e. the one for which parent == null.
You should use the vSphere API to go up the parents' chain