Quantcast
Channel: VMware Communities: Message List - vSphere Management SDK
Viewing all articles
Browse latest Browse all 2052

Expanding VMDK in 6.5 with c#

$
0
0

I would like to expand a VMDK on a VM in our 6.5 environment via the c# Management SDK, and if I understand the documentation correctly the best way to do this would be to leverage HostExtendDisk_Task from HostVStorageObjectManager. The problem i'm having is how do I get the HostVStorageObjectManager object?  I have a feeling my method is close but I just can't figure it out Here is what i'm trying, but it is failing on a type conversion so it's definitely not correct. Do I need to get it from the VM host somehow?

HostVStorageObjectManager vDiskMan = (HostVStorageObjectManager)vimClient.GetView(vimClient.ServiceContent.VStorageObjectManager, null);

Any help is appreciated


Viewing all articles
Browse latest Browse all 2052

Trending Articles



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