Developer Documentation

VMCreateSpec

Document-based creation spec.


Properties

Required Property Name Type Description
optional boot BootCreateSpec

Boot configuration. If unset, guest-specific default values will be used.

optional boot_devices array of DeviceEntryCreateSpec

Boot device configuration. If unset, a server-specific boot sequence will be used.

optional cdroms array of CdromCreateSpec

List of CD-ROMs. If unset, no CD-ROM devices will be created.

optional cpu CpuUpdateSpec

CPU configuration. If unset, guest-specific default values will be used.

optional disks array of DiskCreateSpec

List of disks. If unset, a single blank virtual disk of a guest-specific size will be created on the same storage as the virtual machine configuration, and will use a guest-specific host bus adapter type. If the guest-specific size is 0, no virtual disk will be created.

optional floppies array of FloppyCreateSpec

List of floppy drives. If unset, no floppy drives will be created.

required guest_OS VmGuestOS Enum

Guest OS.

optional hardware_version HardwareVersion Enum

Virtual hardware version. If unset, defaults to the most recent version supported by the server.

optional memory MemoryUpdateSpec

Memory configuration. If unset, guest-specific default values will be used.

optional name string

Virtual machine name. If unset, a default name will be generated by the server.

optional nics array of EthernetCreateSpec

List of Ethernet adapters. If unset, no Ethernet adapters will be created.

optional parallel_ports array of ParallelCreateSpec

List of parallel ports. If unset, no parallel ports will be created.

required placement VMPlacementSpec

Virtual machine placement information. This field is currently required. In the future, if this field is unset, the system will attempt to choose suitable resources on which to place the virtual machine.

optional sata_adapters array of SataCreateSpec

List of SATA adapters. If unset, any adapters necessary to connect the virtual machine’s storage devices will be created; this includes any devices that explicitly specify a SATA host bus adapter, as well as any devices that do not specify a host bus adapter if the guest’s preferred adapter type is SATA.

optional scsi_adapters array of ScsiCreateSpec

List of SCSI adapters. If unset, any adapters necessary to connect the virtual machine’s storage devices will be created; this includes any devices that explicitly specify a SCSI host bus adapter, as well as any devices that do not specify a host bus adapter if the guest’s preferred adapter type is SCSI. The type of the SCSI adapter will be a guest-specific default type.

optional serial_ports array of SerialCreateSpec

List of serial ports. If unset, no serial ports will be created.

optional storage_policy VMStoragePolicySpec

The VM.StoragePolicySpec structure contains information about the storage policy that is to be associated with the virtual machine home (which contains the configuration and log files). If unset the datastore default storage policy (if applicable) is applied. Currently a default storage policy is only supported by object datastores : VVol and vSAN. For non-object datastores, if unset then no storage policy would be associated with the virtual machine home.

Property of


VM_Create_RequestBody
Feedback

Was this page helpful?