Vm#

class Vm(name=None, cluster=None, host=None, description=None, categories=None, ownership_info=None, nutanix_guest_tools=None, power_state=None, memory_size_bytes=None, num_cores_per_socket=None, num_cpus=None, guest_os_name=None, virtual_hardware_version=None, disks=None, cd_roms=None, nics=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)#

Bases: ExternalizableAbstractModel

VM configuration.

Parameters:
property categories#

Categories for the VM.

Type:

list[ CategoryReference ]

property cd_roms#

CD-ROMs attached to the VM.

Type:

list[ CdRom ]

property cluster#
Type:

ClusterReference

property description#

VM description.

Type:

str

property disks#

Disks attached to the VM.

Type:

list[ Disk ]

property guest_os_name#

Name of the guest OS.

Type:

str

property host#
Type:

HostReference

property memory_size_bytes#

Memory size in bytes.

Type:

int

property name#

VM name.

Type:

str

property nics#

NICs attached to the VM.

Type:

list[ Nic ]

property num_cores_per_socket#

Number of cores per socket.

Type:

int

property num_cpus#

Number of vCPUs.

Type:

int

property nutanix_guest_tools#
Type:

NutanixGuestTools

property ownership_info#
Type:

OwnershipInfo

property power_state#
Type:

PowerState

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model

property virtual_hardware_version#

Virtual hardware version of the VM.

Type:

int