Documentation ¶
Index ¶
- func ExpandCustomizationSpec(d *schema.ResourceData, family string) types.CustomizationSpec
- func ExpandVirtualMachineCloneSpec(d *schema.ResourceData, c *govmomi.Client) (types.VirtualMachineCloneSpec, *object.VirtualMachine, error)
- func ValidateCustomizationSpec(d *schema.ResourceDiff, family string) error
- func ValidateVirtualMachineClone(d *schema.ResourceDiff, c *govmomi.Client) error
- func VirtualMachineCloneSchema() map[string]*schema.Schema
- func VirtualMachineCustomizeSchema() map[string]*schema.Schema
- func VirtualMachineOvfDeploySchema() map[string]*schema.Schema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandCustomizationSpec ¶
func ExpandCustomizationSpec(d *schema.ResourceData, family string) types.CustomizationSpec
ExpandCustomizationSpec reads certain ResourceData keys and returns a CustomizationSpec.
func ExpandVirtualMachineCloneSpec ¶
func ExpandVirtualMachineCloneSpec(d *schema.ResourceData, c *govmomi.Client) (types.VirtualMachineCloneSpec, *object.VirtualMachine, error)
ExpandVirtualMachineCloneSpec creates a clone spec for an existing virtual machine.
The clone spec built by this function for the clone contains the target datastore, the source snapshot in the event of linked clones, and a relocate spec that contains the new locations and configuration details of the new virtual disks.
func ValidateCustomizationSpec ¶
func ValidateCustomizationSpec(d *schema.ResourceDiff, family string) error
ValidateCustomizationSpec checks the validity of the supplied customization spec. It should be called during diff customization to veto invalid configs.
func ValidateVirtualMachineClone ¶
func ValidateVirtualMachineClone(d *schema.ResourceDiff, c *govmomi.Client) error
ValidateVirtualMachineClone does pre-creation validation of a virtual machine's configuration to make sure it's suitable for use in cloning. This includes, but is not limited to checking to make sure that the disks in the new VM configuration line up with the configuration in the existing template, and checking to make sure that the VM has a single snapshot we can use in the even that linked clones are enabled.
func VirtualMachineCloneSchema ¶
VirtualMachineCloneSchema represents the schema for the VM clone sub-resource.
This is a workflow for vsphere_virtual_machine that facilitates the creation of a virtual machine through cloning from an existing template. Customization is nested here, even though it exists in its own workflow.
func VirtualMachineCustomizeSchema ¶
VirtualMachineCustomizeSchema returns the schema for VM customization.
Types ¶
This section is empty.