DescribeSnapshotAttribute
Description
Returns information about an attribute of a snapshot. Only one attribute can be specified per call.
Request Parameters
Name | Description | Required |
---|---|---|
| The ID of the Amazon EBS snapshot. Type: String Default: None | No |
| Describes the create volume permissions of the snapshot. Type: String Default: None | Yes |
Response Elements
Name | Description |
---|---|
|
Type: |
Ancestor: None
Children: requestId
, snapshotId
, and createVolumePermission
requestId
The ID of the request.
Type: xsd:string
Ancestor: DescribeSnapshotAttributeResponseType
Children: None
snapshotId
The ID of the Amazon EBS snapshot.
Type: xsd:string
Ancestor: DescribeSnapshotAttributeResponseType
Children: None
createVolumePermission
Create volume permission element.
Type: CreateVolumePermissionListType
Ancestor: DescribeSnapshotAttributeResponseType
Children: item
item
Volume permission item.
Type: CreateVolumePermissionItemType
Ancestor: createVolumePermission
Children: userId
, group
userId
User ID of a user that can create volumes from the snapshot.
Type: xsd:string
Ancestor: item
Children: None
group
Group that is allowed to create volumes from the snapshot (currently supports "all").
Type: xsd:string
Ancestor: item
Children: None
Examples
Example Request
This example describes permissions for the snap-78a54011 snapshot.
https://ec2.amazonaws.com/?Action=DescribeSnapshotAttribute&SnaphsotId=snap-78a54011&Attribute=createVolumePermission&AuthParams
Example Response
<DescribeSnapshotAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2009-08-15/"> <snapshotId></snapshotId> <createVolumePermission> <item> <group>all</group> </item> </createVolumePermission> </DescribeSnapshotAttributeResponse>