CreateImage
In this article:
CreateImage#
Description#
Create an image (CMI) from the specified instance.
Request Parameters#
Required parameters#
instanceId — The ID of the instance.
Type: String
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#
Description — The description of the image.
Type: String
Required: No
TagSpecification.N — Tags assigned to the resource when it is created. Tagging is available only for
image|snapshot.Type: List of TagSpecification objects
Required: No
Response Elements#
imageId — The ID of the newly created image.
Type: String
requestId — The request ID
Type: String
Examples#
c2-ec2 CreateImage InstanceId <instance_id> Name image_name