CreateImage

GET /?Action=CreateImage
Description

Creates an OMI from an existing instance which is either running or stopped.
This action also creates a snapshot of the root volume of the instance, as well as a snapshot of each BSU volume attached to the instance.

Body parameter

Required: false
Name: CreateImageRequest

Name Description Required Schema Default Example

Description

A description for the new OMI.

false

string

DryRun

If set to true, checks whether you have the required permissions to perform the action.

false

boolean

InstanceId

The ID of the instance from which you want to create the OMI.

true

string

Name

A unique name for the new OMI.
Constraints: 3-128 alphanumeric characters, underscores (_), spaces ( ), parentheses (()), slashes (/), periods (.), or dashes (-).

true

string

NoReboot

If set to false, the instance shuts down before creating the OMI and then reboots. If set to true, the instance does not.

false

boolean

Responses
HTTP Code 200
HTTP Code Description Schema

200

CreateImageResult

Response 200

Response 200

Name Description Required Schema Default Example

imageId

The ID of the new OMI.

false

string

requestId

The ID of the request.

false

string