| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Resets an attribute of an AMI to its default value.
Note
The productCodes attribute cannot be reset.
ImageIdThe ID of the AMI.
Type: String
Default: None
Required: Yes
AttributeThe attribute to reset (currently you can only reset the launch permission attribute).
Type: String
Default: None
Valid value: launchPermission
Required: Yes
The following elements are returned in a
ResetImageAttributeResponse element.
requestIdThe ID of the request.
Type: xsd:string
returnReturns 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/2013-02-01/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </ResetImageAttributeResponse>