Quantcast
Channel: VMware Communities : All Content - vSphere Management SDK
Viewing all articles
Browse latest Browse all 1860

ManagedObjectReference StoragePod

$
0
0

Hi,

 

Can some one of you help me with a C# code to get the reference to "StoragePod" ?

 

I'm using

 

             VimService  _service = new VimService();

           _service.Url = url;

            _service.CookieContainer = new CookieContainer();

            _sic = _service.RetrieveServiceContent(_svcRef);

            _service.LoginCompleted += new LoginCompletedEventHandler(_service_LoginCompleted);

            _session = _service.Login(_sic.sessionManager, userId, pwd, null);

 

 

Use search index to do find DataCenter Ref, VM Ref and Folder Ref but don't know to get the StoragePod Reference

 

Ex :       ManagedObjectReference vmCreateLocation = _service.FindByInventoryPath(searchIndex, vmSandboxPath);

 

/BR

Thisara


Viewing all articles
Browse latest Browse all 1860

Trending Articles