The DeregisterImage operation deregisters an AMI. Once deregistered, instances of the AMI can no longer be launched.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
The ID of the AMI to deregister. |
|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
|---|---|
|
A |
Examples
Deregister an image.
// Instantiate the class
$ec2 = new AmazonEC2();
// Deregister the image
$response = $ec2->deregister_image('ami-42ad462b');
// Success?
var_dump($response->isOK());
Result:
bool(true)
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (7 lines) | View on GitHub

