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 |
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. |
true |
string |
||
NoReboot |
If set to |
false |
boolean |
Responses
HTTP Code 200
| HTTP Code | Description | Schema |
|---|---|---|
200 |
CreateImageResult |
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 |