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:
name (max=80 chars) – (
name
) VM name.cluster – (
cluster
)host – (
host
)description – (
description
) VM description.categories – (
categories
) Categories for the VM.ownership_info – (
ownership_info
)nutanix_guest_tools – (
nutanix_guest_tools
)power_state – (
power_state
)memory_size_bytes (min=1,) – (
memory_size_bytes
) Memory size in bytes.num_cores_per_socket (min=1,) – (
num_cores_per_socket
) Number of cores per socket.num_cpus (min=1,) – (
num_cpus
) Number of vCPUs.guest_os_name (max=256 chars) – (
guest_os_name
) Name of the guest OS.virtual_hardware_version (min=1,) – (
virtual_hardware_version
) Virtual hardware version of the VM.disks – (
disks
) Disks attached to the VM.cd_roms – (
cd_roms
) CD-ROMs attached to the VM.nics – (
nics
) NICs attached to the VM.
- property categories#
Categories for the VM.
- Type:
list[
CategoryReference
]
- property cluster#
- Type:
- property description#
VM description.
- Type:
str
- property guest_os_name#
Name of the guest OS.
- Type:
str
- property host#
- Type:
- property memory_size_bytes#
Memory size in bytes.
- Type:
int
- property name#
VM name.
- Type:
str
- 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:
- property ownership_info#
- Type:
- property power_state#
- Type:
- 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