| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Describes an attribute of the specified snapshot. You can specify only one attribute at a time.
SnapshotIdThe ID of the Amazon EBS snapshot.
Type: String
Default: None
Required: Yes
AttributeThe snapshot attribute.
Type: String
Default: None
Valid values: createVolumePermission |
productCodes
Required: Yes
The following elements are returned in a
DescribeSnapshotAttributeResponse element.
requestIdThe ID of the request.
Type: xsd:string
snapshotIdThe ID of the Amazon EBS snapshot.
Type: xsd:string
createVolumePermissionA list of permissions for creating volumes from the snapshot. Each permission is
wrapped in an item element.
productCodesA list of product codes. Each product code is wrapped in an item
element type that contains a product code and a type.
Type: ProductCodesSetItemType
This example describes permissions for the snap-1a2b3c4d snapshot.
https://ec2.amazonaws.com/?Action=DescribeSnapshotAttribute &SnapshotId=snap-1a2b3c4d &Attribute=createVolumePermission &AUTHPARAMS
<DescribeSnapshotAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<snapshotId>snap-1a2b3c4d</snapshotId>
<createVolumePermission>
<item>
<group>all</group>
</item>
</createVolumePermission>
</DescribeSnapshotAttributeResponse>This example describes product codes associated with the snap-1a2b3c4d snapshot.
https://ec2.amazonaws.com/?Action=DescribeSnapshotAttribute &SnapshotId=snap-1a2b3c4d &Attribute=productCodes &AUTHPARAMS
<DescribeSnapshotAttributeResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<snapshotId>snap-1a2b3c4d</snapshotId>
<productCodes>
<item>
<productCode>a1b2c3d4e5f6g7h8i9j10k11</productCode>
<type>marketplace</type>
</item>
</productCodes>
</DescribeSnapshotAttributeResponse>