ModifySnapshotAttribute
Description
Adds or remove permission settings for the specified snapshot.
Request Parameters
Name | Description | Required |
---|---|---|
| The ID of the snapshot. Type: String Default: None | Yes |
| User ID of a user that can create volumes from the snapshot. Type: String Default: None | No |
| Group that is allowed to create volumes from the snapshot (currently supports "all"). Type: String Default: None | No |
| Specifies the attribute to modify. Type: String Valid Values: Default: None | Yes |
| Specifies the operation to perform on the attribute. Type: String Valid Values: Default: None | Yes |
| Modifies the create volume permissions of the snapshot. Type: String Default: None | Yes |
Response Elements
Name | Description |
---|---|
|
Type: |
Ancestor: None
Children: requestId
, return
requestId
The ID of the request.
Type: xsd:string
Ancestor: ModifySnapshotAttributeResponseType
Children: None
return
Returns
Type: xsd:boolean
Ancestor: ModifySnapshotAttributeResponseType
Children: None
Examples
Example Request
This example makes the snap-78a54011 snapshot public.
https://ec2.amazonaws.com/?Action=ModifySnapshotAttribute&snapshotId=snap-78a54011&Attribute=createVolumePermission&OperationType=add&Group.1=all&UserId.1=495219933132&AuthParams
Example Response
<ModifySnapshotAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <return>true</return> </ModifySnapshotAttributeResponse>