Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Problem getting ServerObjectRef

$
0
0

Hello,

 

I have a problem passing a ServerObjectRef to a java service:

1. when I select a Host, the contextObject is XXXXXXXXXXXXXXXXXXXX:HostSystem:host-9 - this can be IResourceReference

2. when I select a storage adapter from the host storage, the contextObject is Object~[object Object]~core - this is an object, breaks when converting to IResourceReference.

 

So, I need to pass the host reference (example 1) when I select a storage adapter. How can this be done? I cannot do PropertyRequest since the contextObject in the second example cannot be converted to IResourceReference.

 

Thanks


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>