RegisterImage
In this article:
RegisterImage#
Description#
Request to create an image from snapshots.
Request Parameters#
Required parameters#
BlockDeviceMapping.N — The block device mapping.
Type: List of BlockDeviceMapping objects
Required: Yes
Name — The name of the image.
Type: String
Required: Yes
Constraints: 3-128 ASCII characters, parentheses
()
, square brackets[]
, spaces" "
, periods.
, slashes/
, dashes-
, single quotes'
, at-signs@
, or underscores_
Optional parameters#
Architecture — The type of the image architecture.
Required: No
Type: String
Valid values:
x86_64
Default value:
x86_64
Description — The description of the image.
Required: No
Type: String
RootDeviceName — The name of the root (boot) device of the instance.
Required: No
Type: String
Valid values:
disk<N>
|cdrom<N>
|floppy<N>
|menu
Default value:
disk1
VirtualizationType — The type of the image virtualization.
Required: No
Type: String
Default value:
hvm
Possible values:
hvm
|hvm-legacy
Response Elements#
imageId — The ID of the newly created image.
Type: String
requestId — The request ID.
Type: String
Examples#
c2-ec2 RegisterImage Name new-image BlockDeviceMapping.0.DeviceName disk1 BlockDeviceMapping.0.Ebs.SnapshotId snap-8BA04109