I have c# code that retrieves various items of inventory, using the usual rigmarole of object, property, and traversal specs etc.
The traversal spec I am using is a fairly "broad" one - it basically includes every time of traversal imaginable in going through the inventory tree. The objective is to basically get all VMs with some associated properties.
One thing that is bugging me now is that if I start the object spec at the moref of the root folder or the vmfolder of a datacenter, everything works fine and I get the morefs to VMs and the properties I want. However, if I start the object spec (objectspec.obj) at the moref of the datacenter itself, then I do not get anything back. Is it even possible to start at a datacenter (not the vmfolder of the datacenter) and get all the VMs therein? I understand that I can get the vmfolder from the datacenter and then get the VMs, and that works fine - the question is whether I can start at the datacenter moref itself.
Any help or comments would be much appreciated.
-- Moby