Skip to content

/AWS1/CL_EC2=>IMPORTVOLUME00()

About ImportVolume

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

This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead. To import a disk to a snapshot, use ImportSnapshot instead.

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 Disks to Amazon EBS in the Amazon EC2 CLI Reference PDF file.

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

Method Signature

IMPORTING

Required arguments:

IV_AVAILABILITYZONE TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The Availability Zone for the resulting EBS volume.

IO_IMAGE TYPE REF TO /AWS1/CL_EC2DISKIMAGEDETAIL /AWS1/CL_EC2DISKIMAGEDETAIL

The disk image.

IO_VOLUME TYPE REF TO /AWS1/CL_EC2VOLUMEDETAIL /AWS1/CL_EC2VOLUMEDETAIL

The volume size.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/EC2STRING /AWS1/EC2STRING

A description of the volume.

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2IMPORTVOLUMERESULT /AWS1/CL_EC2IMPORTVOLUMERESULT