ModifySnapshotAttribute
Description
Adds or remove permission settings for the specified snapshot.
Request Parameters
Name | Description | Required |
---|---|---|
|
Type: |
Ancestor: None
Children: snapshotId
, createVolumePermission
snapshotId
The ID of the snapshot.
Type: xsd:string
Default: None
Ancestor: ModifySnapshotAttributeType
Children: None
Yes
createVolumePermission
Create volume permission element.
Type: CreateVolumePermissionOperationType
Ancestor: ModifySnapshotAttributeType
Children: add
, remove
CreateVolumePermissionOperationType
add
Add permission.
Type: CreateVolumePermissionListType
Ancestor: createVolumePermission
Children: item
item
Volume permission item.
Type: CreateVolumePermissionItemType
Ancestor: add
Children: userId
, group
userId
User ID of a user that can create volumes from the snapshot.
Type: xsd:string
Default: None
Ancestor: item
Children: None
No
group
Group that is allowed to create volumes from the snapshot (currently supports "all").
Type: xsd:string
Default: None
Ancestor: item
Children: None
No
remove
Remove permission.
Type: CreateVolumePermissionListType
Ancestor: createVolumePermission
Children: item
item
Volume permission item.
Type: CreateVolumePermissionItemType
Ancestor: remove
Children: userId
, group
userId
User ID of a user that can create volumes from the snapshot.
Type: xsd:string
Default: None
Ancestor: item
Children: None
No
group
Group that is allowed to create volumes from the snapshot (currently supports "all").
Type: xsd:string
Default: None
Ancestor: item
Children: None
No
Response Elements
Name | Description |
---|---|
|
Type: ModifySnapshotAttributeResponseType Ancestor: None Children: |
|
The ID of the request. Type: xsd:string Ancestor: Children: None |
|
Returns true if successful. Otherwise, returns an error. Type: xsd:boolean Ancestor: Children: None |
Examples
Example Request
This example makes the snap-78a54011 snapshot public.
<ModifySnapshotAttribute xmlns="http://ec2.amazonaws.com/doc/2009-10-31/"> <snapshotId>snap-78a54011</snapshotId> <createVolumePermission> <add> <item> <group>all</group> </item> </add> </createVolumePermission> </ModifySnapshotAttribute>
Example Response
<ModifySnapshotAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-10-31/"> <return>true</return> </ModifySnapshotAttributeResponse>