DeregisterImage
Description
Deregisters the specified AMI. Once deregistered, the AMI cannot be used to launch new instances.
Note | |
---|---|
This command does not delete the AMI from Amazon S3. |
Request Parameters
Name | Description | Required |
---|---|---|
|
Type: |
Ancestor: None
Children: imageId
imageId
Unique ID of the AMI which was assigned during registration. To register an AMI, use "RegisterImage". To view the AMI IDs of AMIs that belong to your account. use "DescribeImages".
Type: xsd:string
Default: None
Ancestor: DeregisterImageType
Children: None
Yes
Response Elements
Name | Description |
---|---|
|
Type: DeregisterImageResponseType Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
Returns "true" if deregistration succeeded; otherwise "false". Type: xsd:boolean Ancestor: Children: None |
Examples
Example Request
This example deregisters the ami-4fa54026
AMI.
<DeregisterImage xmlns="http://ec2.amazonaws.com/doc/2009-07-15/"> <imageId>ami-4fa54026</imageId> </DeregisterImage>
Example Response
<DeregisterImageResponse xmlns="http://ec2.amazonaws.com/doc/2009-07-15/"> <return>true</return> </DeregisterImageResponse>