| Did this page help you? Yes No Tell us about it... |
Adds or remove permission settings for the specified snapshot.
| Name | Description | Required |
|---|---|---|
|
|
The ID of the snapshot. Type: String Default: None |
Yes |
|
|
Adds the specified AWS account ID to the volume's list of create volume permissions. Type: String Default: None |
Yes |
|
|
Adds the specified group to the volume's list of create volume permissions. The
only valid value is Type: String Default: None |
Yes |
|
|
Removes the specified AWS account ID from the volume's list of create volume pernissions. Type: String Default: None |
No |
|
|
Removes the specified group from the volume's list of create volume permissions. Type: String Default: None |
No |
The elements in the following table are wrapped in a
ModifySnapshotAttributeResponse structure.
| Name | Description |
|---|---|
|
|
The ID of the request. Type: xsd:string |
|
|
Returns true if successful. Otherwise, returns an error. Type: xsd:boolean |
This example makes the snap-78a54011 snapshot public, and gives the account with ID 111122223333 permission to create volumes from the snapshot.
https://ec2.amazonaws.com/?Action=ModifySnapshotAttribute &snapshotId=snap-78a54011 &CreateVolumePermission.Add.1.UserId=111122223333 &CreateVolumePermission.Add.1.Group=all &AUTHPARAMS
This example makes the snap-78a54011 snapshot public, and removes the account with ID 111122223333 from the list of users with permission to create volumes from the snapshot.
https://ec2.amazonaws.com/?Action=ModifySnapshotAttribute &snapshotId=snap-78a54011 &CreateVolumePermission.Remove.1.UserId=111122223333 &CreateVolumePermission.Add.1.Group=all &AUTHPARAMS
<ModifySnapshotAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2011-12-15/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </ModifySnapshotAttributeResponse>