Quantcast
Channel: VMware Communities : Discussion List - VMware vCloud Director
Viewing all articles
Browse latest Browse all 4515

Disk bus number & unit number determination

$
0
0

Hi

 

Disk disk = Disk.getDiskByReference(...);
int busNumber = ...;
int unitNumber = ...;
VM vm = ...;
vm.attachDisk(disk.getReference(), busNumber, unitNumber).waitForTask(0);
Disk diskAfterAttach = Disk.getDiskByReference(...);

 

How is it possible to determine the bus and unit number from the diskAfterAttach?

 

This information is available on the vCloud GUI so this must be possible.

 

Thanks Denes


Viewing all articles
Browse latest Browse all 4515

Trending Articles



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