Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to Digg

ResetImageAttribute

Description

Resets an attribute of an AMI to its default value.

[Note]Note

The productCodes attribute cannot be reset.

Request Parameters

NameDescriptionRequired

ImageId

ID of the AMI.

Type: String

Default: None

Yes

Attribute

Attribute to reset (currently you can only reset the launch permission attribute).

Type: String

Default: None

Valid Value: launchPermission

Yes

Response Elements

The elements in the following table are wrapped in a ResetImageAttributeResponse structure.

NameDescription

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

This example resets the launchPermission attribute for the specified AMI.

https://ec2.amazonaws.com/?Action=ResetImageAttribute
&ImageId=ami-61a54008
&Attribute=launchPermission
&AUTHPARAMS

Example Response

<ResetImageAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2011-01-01/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
  <return>true</return>
</ResetImageAttributeResponse>