Skip to content

/AWS1/CL_EC2=>CANCELIMPORTTASK()

About CancelImportTask

Cancels an in-process import virtual machine or import snapshot task.

Method Signature

IMPORTING

Optional arguments:

IV_CANCELREASON TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The reason for canceling the task.

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_IMPORTTASKID TYPE /AWS1/EC2IMPORTTASKID /AWS1/EC2IMPORTTASKID

The ID of the import image or import snapshot task to be canceled.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2CANCIMPORTTASKRSLT /AWS1/CL_EC2CANCIMPORTTASKRSLT