Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

ResetSnapshotAttribute

Description

Resets permission settings for the specified snapshot.

Request Parameters

SnapshotId

The ID of the snapshot.

Type: String

Default: None

Required: Yes

Attribute

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

Type: String

Default: None

Valid value: createVolumePermission

Required: Yes

Response Elements

The following elements are returned in a ResetSnapshotAttributeResponse element.

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-1a2b3c4d, making it a private snapshot that can only be used by the account that created it.

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

Example Response

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