0

I have to get DiskType information using python pyvmomi library, I am able to get the same through C# VMware sdk via "Get-VM | Get-HardDisk -DiskType "Flat" | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName,Diskmode | fl" command, which will output all the disk in vSphere/eSX with Flat disktype. In the respective command, I have searched for "Flat" disktype which can also be "RawPhysical, RawVirtual, or Unknown". I have gone through VMware MOB properties as well but wasn't able to search for DiskType property.

Thanks

4

1 に答える 1

0

反復して、 type のプロパティを持つvim.vm.config.hardware.deviceデバイスがあるかどうかを確認してください。そのオブジェクトの詳細については、ドキュメントを参照してください。backingRawDiskMappingVer1BackingInfo

于 2020-04-02T10:51:20.447 に答える