# Data Object - VirtualMachineImportSpec(vim.vm.VmImportSpec)

Extends
  ImportSpec
See also
  ResourcePool, VirtualMachineConfigSpec
Since
  vSphere API 4.0

## Data Object Description

A VmImportSpec is used by ResourcePool.importVApp when importing entities.

It provides all information needed to import a VirtualMachine. So far, this coincides with VirtualMachineConfigSpec.

A VmImportSpec can be contained in a VirtualAppImportSpec as part of the ImportSpec for an entity.

See also ImportSpec.

Properties

Name | Type | Description
--- | --- | ---
configSpec | VirtualMachineConfigSpec | Configuration for the virtual machine.
resPoolEntity* | ManagedObjectReference to a ResourcePool | Deprecated. As of vSphere API 5.1. If specified, this resource pool will be used as the parent resource pool and the virtual machine will be made a linked child to the parent vApp. This field is ignored for the root node in an ImportSpec tree. Since vSphere API 4.1
Properties inherited from ImportSpec
entityConfig, instantiationOst
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="VirtualMachineImportSpec"> <complexContent> <extension base="vsan:ImportSpec"> <sequence> <element name="configSpec" type="vsan:VirtualMachineConfigSpec"/> <element name="resPoolEntity" type="vsan:ManagedObjectReference" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>