Amazon Elastic Compute Cloud
API Reference (API Version 2011-12-15)
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 DiggDid this page help you?  Yes  No   Tell us about it...

ResetSnapshotAttribute

Description

Resets permission settings for the specified snapshot.

Request Parameters

NameDescriptionRequired

SnapshotId

The ID of the snapshot.

Type: String

Default: None

Yes

Attribute

Attribute to reset (currently only the attribute for permission to create volumes can be reset)

Type: String

Default: None

Valid Value: createVolumePermission

Yes

Response Elements

The elements in the following table are wrapped in a ResetSnapshotAttributeResponse 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 permissions for snap-78a54011, making it a private snapshot that can only be used by the account that created it.

https://ec2.amazonaws.com/?Action=ResetSnapshotAttribute
&SnapshotId=snap-78a54011
&Attribute=createVolumePermission
&AUTHPARAMS

Example Response

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