Skip to content

/AWS1/CL_EC2=>EXPORTIMAGE()

About ExportImage

Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM directly from an Amazon Machine Image (AMI) in the VM Import/Export User Guide.

Method Signature

IMPORTING

Required arguments:

IV_DISKIMAGEFORMAT TYPE /AWS1/EC2DISKIMAGEFORMAT /AWS1/EC2DISKIMAGEFORMAT

The disk image format.

IV_IMAGEID TYPE /AWS1/EC2IMAGEID /AWS1/EC2IMAGEID

The ID of the image.

IO_S3EXPORTLOCATION TYPE REF TO /AWS1/CL_EC2EXPORTTASKS3LOCREQ /AWS1/CL_EC2EXPORTTASKS3LOCREQ

The Amazon S3 bucket for the destination image. The destination bucket must exist.

Optional arguments:

IV_CLIENTTOKEN TYPE /AWS1/EC2STRING /AWS1/EC2STRING

Token to enable idempotency for export image requests.

IV_DESCRIPTION TYPE /AWS1/EC2STRING /AWS1/EC2STRING

A description of the image being exported. The maximum length is 255 characters.

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.

IV_ROLENAME TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The name of the role that grants VM Import/Export permission to export images to your Amazon S3 bucket. If this parameter is not specified, the default role is named 'vmimport'.

IT_TAGSPECIFICATIONS TYPE /AWS1/CL_EC2TAGSPECIFICATION=>TT_TAGSPECIFICATIONLIST TT_TAGSPECIFICATIONLIST

The tags to apply to the export image task during creation.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2EXPORTIMAGERESULT /AWS1/CL_EC2EXPORTIMAGERESULT