VMware {code} Community
Dreamer732
Contributor
Contributor

Property Collector - what happens if the same object can be reached from multiple paths?

Hi,

I am new to VI SDK. I am exploring property collector to write some queries.

So i am curious to know what happens if a same object can be reached from different paths.

Will the vmservice returns the proeprties of the same object multiple times?

And please let me know if you know of any tips/articles/recommendations regd propertycollector as I am using it extensively in my application.

Regards,

Naresh

0 Kudos
1 Reply
stumpr
Virtuoso
Virtuoso

No, it will not get the properties more than once.  I believe, but not tested, that even if you add the same mo-ref in a View container and make a request, it will still return only one set of properties.  I recall reading this in some of the documentation notes, but can't remember the specific page or reference.

Reuben Stump | http://www.virtuin.com | @ReubenStump
0 Kudos