Skip to content

/AWS1/CL_EC2=>IMPORTINSTANCE00()

About ImportInstance

We recommend that you use the ImportImage API. For more information, see Importing a VM as an image using VM Import/Export in the VM Import/Export User Guide.

Creates an import instance task using metadata from the specified disk image.

This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file.

This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead.

For information about the import manifest referenced by this API action, see VM Import Manifest.

Method Signature

IMPORTING

Required arguments:

IV_PLATFORM TYPE /AWS1/EC2PLATFORMVALUES /AWS1/EC2PLATFORMVALUES

The instance operating system.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/EC2STRING /AWS1/EC2STRING

A description for the instance being imported.

IT_DISKIMAGES TYPE /AWS1/CL_EC2DISKIMAGE=>TT_DISKIMAGELIST TT_DISKIMAGELIST

The disk image.

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

IO_LAUNCHSPECIFICATION TYPE REF TO /AWS1/CL_EC2IMPINSTLAUNCHSPEC /AWS1/CL_EC2IMPINSTLAUNCHSPEC

The launch specification.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2IMPORTINSTRESULT /AWS1/CL_EC2IMPORTINSTRESULT