Resets an attribute of an AMI to its default value.
![]() | Note |
|---|---|
The productCodes attribute cannot be reset. |
| Name | Description | Required |
|---|---|---|
|
|
ID of the AMI. Type: String Default: None |
Yes |
|
|
Attribute to reset (currently you can only reset the launch permission attribute). Type: String Default: None Valid Value: |
Yes |
The elements in the following table are wrapped in a
ResetImageAttributeResponse structure.
| Name | Description |
|---|---|
|
|
The ID of the request. Type: xsd:string |
|
|
Returns true if the request succeeds. Otherwise, returns an error. Type: xsd:boolean |
This example resets the launchPermission attribute for the
specified AMI.
https://ec2.amazonaws.com/?Action=ResetImageAttribute &ImageId=ami-61a54008 &Attribute=launchPermission &AUTHPARAMS
<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2011-01-01/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </ResetImageAttributeResponse>