I have a plug-in where I am building the URL in order to perform an HTTP-GET operation on a file within a VM folder.
To build the URL, I need the Datacenter path for the dcPath in the URL query string.
I initially ran into problems when I learned that Datacenters can be contained within folders. I have made changes to my plugin to account for this issue. My method is to get the managed object reference of the datacenter, and then use the parent property recursively until I find the parent whose name is "Datacenters". For each parent object, I prepend the name of that object to my dcPath (separated with slashes of course) in order to create the full path which I can use in the URL. On my English version, this works correctly.
I now run into a problem for the German locale because the "Datacenters" folder is named "Datencenter".
My question is, can someone direct me to a comprehensive list of all possible names of this special "Datacenters" folder?
I have searched the VMware documentation and cannot find any such list. I have looked through these VMware communities, and I see other people having "Datacenters"/"Datencenter" issues, but I don't see anything to help me for all locales. Is the French version named "Datacentre"? What is the Japanese "Datacenters" folder named? I don't know where to find this information.
I have compared this special "Datacenters" folder with a standard folder that I have created, and I only see two differences. The first difference is the name; the special folder is named "Datacenters" (in the English version), and I don't see any way for the user to rename it him/herself). The second difference is that this special "Datacenters" folder's parent is "unset". If I knew that this parent value will always be "unset", then I could use that instead of the name-property. So a followup question is, can someone confirm (or direct me to information) that this "Datacenters" folder will ALWAYS have an "unset" parent-property? I don't see any way to set up the system where this "Datacenters" folder would have a parent, but maybe I just don't know how to do it.
Another followup question (which might be answered by the first question) is, what other "special folders" or "special items" within the vSphere context have names which may vary based on locale? Where can I find the comprehensive list of all "special items" and their full list of locale names?
Thanks for any help!