POST /#Action=ImportImage
To import your virtual machines (VMs) with a console-based experience, you can use the Import virtual machine images to Amazon Web Services template in the Migration Hub Orchestrator console. For more information, see the Migration Hub Orchestrator User Guide .
Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).
Amazon Web Services VM Import/Export strongly recommends specifying a value for either the --license-type
or --usage-operation
parameter when you create a new VM Import task. This ensures your operating system is licensed appropriately and your billing is optimized.
For more information, see Importing a VM as an image using VM Import/Export in the VM Import/Export User Guide.
Servers
- https://ec2.{region}.amazonaws.com
- https://ec2.amazonaws.com
- https://ec2.{region}.amazonaws.com.cn
Request headers
Name | Type | Required | Description |
---|---|---|---|
X-Amz-Content-Sha256 |
String | No | |
X-Amz-Credential |
String | No | |
Content-Type |
String | Yes |
The media type of the request body.
Default value: "text/xml" |
X-Amz-Date |
String | No | |
X-Amz-Algorithm |
String | No | |
X-Amz-SignedHeaders |
String | No | |
X-Amz-Security-Token |
String | No | |
X-Amz-Signature |
String | No |
Query parameters
Name | Type | Required | Description |
---|---|---|---|
Version |
String | Yes |
Possible values:
|
Action |
String | Yes |
Possible values:
|
Request body fields
Name | Type | Required | Description |
---|---|---|---|
DiskContainers[] |
Array | No |
Information about the disk containers. |
UsageOperation |
String | No |
The usage operation value. For more information, see Licensing options in the VM Import/Export User Guide. |
LicenseType |
String | No |
The license type to be used for the Amazon Machine Image (AMI) after importing. Specify To use |
RoleName |
String | No |
The name of the role to use when not using the default role, 'vmimport'. |
Description |
String | No |
A description string for the import image task. |
ClientToken |
String | No |
The token to enable idempotency for VM import requests. |
TagSpecifications[] |
Array | No |
The tags to apply to the import image task during creation. |
KmsKeyId |
String | No |
An identifier for the symmetric KMS key to use when creating the encrypted AMI. This parameter is only required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for EBS is used. If a The KMS key identifier may be provided in any of the following formats:
Amazon Web Services parses The specified KMS key must exist in the Region that the AMI is being copied to. Amazon EBS does not support asymmetric KMS keys. |
LicenseSpecifications[] |
Array | No |
The ARNs of the license configurations. |
BootMode |
String | No |
The boot mode of the virtual machine. Possible values:
|
Encrypted |
Boolean | No |
Specifies whether the destination AMI of the imported image should be encrypted. The default KMS key for EBS is used unless you specify a non-default KMS key using |
DryRun |
Boolean | No |
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 |
Hypervisor |
String | No |
The target hypervisor platform. Valid values: |
Architecture |
String | No |
The architecture of the virtual machine. Valid values: |
Platform |
String | No |
The operating system of the virtual machine. Valid values: |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.