Ce contenu n'est pas disponible dans la langue sélectionnée.
2.8. Example: Listing the Size of a Virtual Machine
The
API class provides access to a virtual machine collection, named vms. This collection in turn contains a disks collection that describes the details of each disk attached to a virtual machine.
Example 2.7. Listing the Size of a Virtual Machine
This Python example prints a list of the virtual machines in the Red Hat Enterprise Virtualization environment along with their total disk size in bytes: