Este contenido no está disponible en el idioma seleccionado.
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: